Skip to content

Commit ffe1bf7

Browse files
authored
Merge pull request #9888 from JohannesSchulz97/patch-1
Update index.md
2 parents 56e1aab + dd9d526 commit ffe1bf7

File tree

1 file changed

+2
-2
lines changed
  • src/content/developers/docs/standards/tokens/erc-20

1 file changed

+2
-2
lines changed

src/content/developers/docs/standards/tokens/erc-20/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ simplified_abi = [
125125
}
126126
]
127127

128-
dai_contract = w3.eth.contract(address=w3.toChecksumAddress(dai_token_addr), abi=simplified_abi)
128+
dai_contract = w3.eth.contract(address=w3.to_checksum_address(dai_token_addr), abi=simplified_abi)
129129
symbol = dai_contract.functions.symbol().call()
130130
decimals = dai_contract.functions.decimals().call()
131131
totalSupply = dai_contract.functions.totalSupply().call() / 10**decimals
@@ -136,7 +136,7 @@ print("===== %s =====" % symbol)
136136
print("Total Supply:", totalSupply)
137137
print("Addr Balance:", addr_balance)
138138

139-
weth_contract = w3.eth.contract(address=w3.toChecksumAddress(weth_token_addr), abi=simplified_abi)
139+
weth_contract = w3.eth.contract(address=w3.to_checksum_address(weth_token_addr), abi=simplified_abi)
140140
symbol = weth_contract.functions.symbol().call()
141141
decimals = weth_contract.functions.decimals().call()
142142
totalSupply = weth_contract.functions.totalSupply().call() / 10**decimals

0 commit comments

Comments
 (0)