Skip to content

Commit

Permalink
Fix example for adding local_filter_middleware to middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjw authored and kclowes committed Nov 8, 2019
1 parent c268b87 commit 23d540d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middleware.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ retrieved using JSON-RPC endpoints that don't rely on server state.
.. code-block:: python
>>> from web3 import Web3, EthereumTesterProvider
>>> w3 = Web3(EthereumTesterProvider)
>>> w3 = Web3(EthereumTesterProvider())
>>> from web3.middleware import local_filter_middleware
>>> w3.middleware_onion.add(local_filter_middleware)
Expand Down

0 comments on commit 23d540d

Please sign in to comment.