-
Notifications
You must be signed in to change notification settings - Fork 938
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
Decoding function inputs for an Ethereum call failed #932
Comments
I've managed to reproduce this locally:
|
Transaction: https://etherscan.io/tx/0x837a8753e9b9d1a57a055b49b95ddbff85bdb1f099951e4289848bd490ddb171 Input data:
So somehow our input data is different and invalid. The first four bytes of the input data are for the function signature itself. These are identical in both cases. If we strip those off, we get:
|
The problem here is that the tx has an input of The serialization library we use, ethabi, does not successfully deserialize the input because it is expecting 16 bytes. Solidity could be accepting the 6 byte input (and maybe padding it in the runtime) to populate a I'm modifying ethabi to handle this. |
This is worked on in graphprotocol/ethabi#8. |
Closing because this is old and seems fixed |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Subgraph fails with error when attempting to decode some invalid inputs for an Ethereum function call.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
changeName(bytes16)
handlerWhat is the expected behavior?
Graph node should ignore the invalid function call and keep processing the subgraph.
The text was updated successfully, but these errors were encountered: