Skip to content

Commit

Permalink
Fix typo con quickstart docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 authored and jenikd committed Oct 6, 2023
1 parent 98fc509 commit d38dec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ the possibility of doing ``batch_calls`` (a single request making read-only call
from gnosis.eth import EthereumClient
from gnosis.eth.contracts import get_erc721_contract
ethereum_client = EthereumClient(ETHEREUM_NODE_URL)
erc721_contract = get_erc721_contract(self.w3, token_address)
erc721_contract = get_erc721_contract(ethereum_client.w3, token_address)
name, symbol = ethereum_client.batch_call([
erc721_contract.functions.name(),
erc721_contract.functions.symbol(),
Expand All @@ -38,7 +38,7 @@ More optimal in case you want to call the same function in multiple contracts
from gnosis.eth import EthereumClient
from gnosis.eth.contracts import get_erc20_contract
ethereum_client = EthereumClient(ETHEREUM_NODE_URL)
erc20_contract = get_erc20_contract(self.w3, token_address)
erc20_contract = get_erc20_contract(ethereum_client.w3, token_address)
my_account = '0xD0E03B027A367fED4fd0E7834a82CD8A73E76B45'
name, symbol = ethereum_client.batch_call_same_function(
erc20_contract.functions.balanceOf(my_account),
Expand Down

0 comments on commit d38dec9

Please sign in to comment.