I'm decoding the raw input data of an eth transaction. I have the function signature to decode the input with.
I'm using the eth_abi
library for python.
res = eth_abi.decode(['address', 'address'], eth_utils.decode_hex(input))
eth_utils.decode_hex()
converts hex to bytes.
this throws:
Padding bytes were not empty: b'\x1c\xffy\xcd\x00\x00\x00\x00\x00\x00\x00\x00'
Some examples:
paramList= ['address', 'bool']
input= "0xa9059cbb000000000000000000000000b25cd920f3cb29e9de2a1f55577a3fe539d187a70000000000000000000000000000000000000000000000000000000159b4fa00"
paramList= ['uint256']
input= "0x2e1a7d4d0000000000000000000000000000000000000000000000000214e8348c4f0000"
Can anyone help me out??
input
value that cause the error ?