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

Allow byte values shorter than specified size #11

Closed
Mrtenz opened this issue Oct 8, 2022 · 0 comments · Fixed by #12
Closed

Allow byte values shorter than specified size #11

Mrtenz opened this issue Oct 8, 2022 · 0 comments · Fixed by #12
Assignees
Labels
enhancement New feature or request

Comments

@Mrtenz
Copy link
Member

Mrtenz commented Oct 8, 2022

Right now, for bytes32 for example, we expect that the value is exactly 32 bytes long. To make it a bit more user-friendly, we could accept values that are shorter than 32 bytes, and pad them to be 32 bytes long. This can also apply to address.

@Mrtenz Mrtenz added the enhancement New feature or request label Oct 8, 2022
@Mrtenz Mrtenz self-assigned this Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant