Skip to content

Commit

Permalink
fix address derivation for web3 eth
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretSaturn committed Jul 11, 2024
1 parent 87b78d7 commit d3cf6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TNLS-Relayers/eth_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, private_key="", provider=None, contract_address="", chain_id=

self.private_key = private_key
self.provider = provider
self.address = auto.w3.eth.account.privateKeyToAccount(private_key).address
self.address = auto.w3.eth.account.from_key(private_key).address
self.contract_address = contract_address
self.chain_id = chain_id
self.nonce = self.provider.eth.get_transaction_count(self.address, 'pending')
Expand Down

0 comments on commit d3cf6a6

Please sign in to comment.