Consensys / abi-decoder

Nodejs and Javascript library for decoding data params and events from ethereum transactions
GNU General Public License v3.0
641 stars 223 forks source link

data out-of-bounds error #77

Open uranik777 opened 3 years ago

uranik777 commented 3 years ago

Error on decode trc20 transaction: 0xa9059cbb000000000000000000000000000000000000000000000000000000000d0dacc0 ( tron tx id 02108766a3d408b3662eafad8326d72b34e5b0e8d66d226c71d35c2c0099b9e0 ) Error data: data out-of-bounds (length=32, offset=64, code=BUFFER_OVERRUN, version=abi/5.0.7)

Dev-Doggo commented 2 years ago

That's the transfer function signature, the data is not the correct length as the error tells you. It's expecting 64 bytes (first 32 is the padded address, and last 32 is the uint256 amount)