-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot decode tx data #56
Comments
I'm facing the same issue with this transaction at this moment. |
I have the same problem! Finally I fill all data with zero except the part I need the its value, it meets my requirement.
|
The transaction linked above is not constructed correctly (has a 0x04 byte prefixed to the address) but that shouldn't make the decode crash. Actually the code that is crashing is |
I've added support in ethers 5.0.12 for supporting legacy Solidity 0.4 external event data. For more details, please see ethers-io/ethers.js#891. |
This is somewhat an edge case but the ERC20 token transfer for this transaction cannot be decoded. I am not sure whether I should open an issue here or @ethersproject/abi.
Sample Code
Exception
I think that there is a typo in the input data for the address parameter and this causes a problem. There is a 4 instead of 0 (I added spaces before and after to make it more readable.)
Function signiture: 0xa9059cbb
Address: 00000000000000000000000 4 3f47038d2b20566700a38cd718a537103f7696c9
Value: 000000000000000000000000000000000000000000000000000000000903c63c
The text was updated successfully, but these errors were encountered: