Remove auto checksum address

This commit is contained in:
nolash 2020-12-08 20:58:46 +01:00
parent 646fc8c1e1
commit 6ab532e741
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -51,7 +51,7 @@ def main():
w3.eth.defaultAccount = w3.eth.accounts[0] w3.eth.defaultAccount = w3.eth.accounts[0]
if args.o != None: if args.o != None:
w3.eth.defaultAccount = web3.Web3.toChecksumAddress(args.o) w3.eth.defaultAccount = args.o
c = w3.eth.contract(abi=abi, bytecode=bytecode) c = w3.eth.contract(abi=abi, bytecode=bytecode)
tx_hash = c.constructor(args.n, args.s, args.d).transact() tx_hash = c.constructor(args.n, args.s, args.d).transact()