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

Improve handling of decodeData when decoding invalid tuples #490

Open
1 of 4 tasks
CJ42 opened this issue Nov 7, 2024 · 0 comments
Open
1 of 4 tasks

Improve handling of decodeData when decoding invalid tuples #490

CJ42 opened this issue Nov 7, 2024 · 0 comments

Comments

@CJ42
Copy link
Collaborator

CJ42 commented Nov 7, 2024

I'm submitting a...

  • bug report
  • feature request
  • question about the decisions made in the repository
  • question about how to use this project

Summary

When decoding hex values that have the valueType / valueContent of tuples like (Address,Bytes32), if the value that we are trying to decode is invalid like 0xdeadbeef, an empty array is returned.

It could be better to handle these cases by returning null maybe. This can improve the debugging experience.

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

No branches or pull requests

1 participant