-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Calling structs incorrectly decodes non-32-byte data #421
Comments
I see this with LOGs too. For example
while |
Version 0.20.x got his last maintenance release with v0.20.7. Please update your code to the latest 1.0 version of Web3.js. Further details about the current project state are explained in the release announcement of version 1.0.0-beta.38. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A struct with bytesX where X < 32 will overflow the subsequent fields of the struct when called via web3. Placing the bytesX type last will work, however (if it is the only one of its kind in the struct). Using
web3@0.15.3
For example
testStruct will return
[ '0x1210', '0x0000000000000000000000000000000000000000000000000000000000000c98' ]
when accessedreversing the field order results in correct values
The text was updated successfully, but these errors were encountered: