File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/content/developers/docs/standards/tokens/erc-20 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ simplified_abi = [
125
125
}
126
126
]
127
127
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)
129
129
symbol = dai_contract.functions.symbol().call()
130
130
decimals = dai_contract.functions.decimals().call()
131
131
totalSupply = dai_contract.functions.totalSupply().call() / 10 ** decimals
@@ -136,7 +136,7 @@ print("===== %s =====" % symbol)
136
136
print (" Total Supply:" , totalSupply)
137
137
print (" Addr Balance:" , addr_balance)
138
138
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)
140
140
symbol = weth_contract.functions.symbol().call()
141
141
decimals = weth_contract.functions.decimals().call()
142
142
totalSupply = weth_contract.functions.totalSupply().call() / 10 ** decimals
You can’t perform that action at this time.
0 commit comments