Skip to content
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

fix: could not decode ABIs when missing leading zeroes #2430

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Dec 19, 2024

What I did

boa gives us log data that is not always padded with leading zeroes.
i dont see why i cant just pad it myself and move on...

NOTE: We won't need this if this merges instead: ethereum/eth-abi#240

How I did it

make a custom decoder for uint25

question: is this supposed to happen even when strict=False? ill ask the snake charmers...

How to verify it

see my test

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey force-pushed the fix/padding-issues-abi-decode branch from c198e79 to 59011c1 Compare December 19, 2024 20:18
Copy link
Contributor

@NotPeopling2day NotPeopling2day left a comment

Choose a reason for hiding this comment

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

Hopefully this can be added to the base library. Have you seen it with any other data types?

@antazoey
Copy link
Member Author

Have you seen it with any other data types?

not with strict=False, that is why im hopin my eth-abi PR goes through

@antazoey antazoey force-pushed the fix/padding-issues-abi-decode branch from 66867d2 to 8842e07 Compare December 23, 2024 15:47
@antazoey antazoey merged commit d5e1a6f into ApeWorX:main Dec 23, 2024
18 checks passed
@antazoey antazoey deleted the fix/padding-issues-abi-decode branch December 23, 2024 17:48
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.

3 participants