mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 22:20:22 -04:00
add info for calldata
This commit is contained in:
parent
f0168569fc
commit
b790343dde
2 changed files with 17 additions and 3 deletions
|
@ -32,7 +32,7 @@ def decode_calldata(data) -> dict:
|
|||
w3 = Web3Wrapper(mode=data['provider_type'],
|
||||
network=data['network'])
|
||||
|
||||
w3.get_pair_contract(address=data['contract_address'), abi=data['abi'))
|
||||
w3.get_pair_contract(address=data['contract_address'], abi=data['abi'])
|
||||
return w3.pair_contract.decode_function_input(data['calldata'])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue