Skip to content

Conversation

@bobg
Copy link
Contributor

@bobg bobg commented Dec 14, 2017

This change inlines the logic of bytesAreProper at its sole callsite, ABI.Unpack, and applies the multiple-of-32 test only in the case of unpacking methods. Event data is not required to be a multiple of 32 bytes long.

@GitCop
Copy link

GitCop commented Dec 14, 2017

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: ac3c3bd12a5e53cdc8c95479650906e017100370
  • Commits must be prefixed with the package(s) they modify

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@dshulyak
Copy link
Contributor

do you mind adding a test for this change? i am just curious about valid event data the length of which is not a multiple of 32

@GitCop
Copy link

GitCop commented Dec 17, 2017

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: ac3c3bd12a5e53cdc8c95479650906e017100370
  • Commits must be prefixed with the package(s) they modify

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@bobg
Copy link
Contributor Author

bobg commented Dec 17, 2017

Done. Also squashed the commits and resolved the GitCop complaint.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fjl fjl requested a review from gballet December 19, 2017 13:11
@fjl fjl changed the title accounts/abi: check for len%32==0 only when unpacking methods, not events accounts/abi: remove check for len%32==0 when unpacking events Dec 21, 2017
@fjl fjl merged commit e21aa0f into ethereum:master Dec 21, 2017
Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@karalabe karalabe added this to the 1.8.0 milestone Dec 21, 2017
mariameda pushed a commit to NiluPlatform/go-nilu that referenced this pull request Aug 23, 2018
…eum#15670)

This change inlines the logic of bytesAreProper at its sole
callsite, ABI.Unpack, and applies the multiple-of-32 test only in
the case of unpacking methods. Event data is not required to be a
multiple of 32 bytes long.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants