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 bytes as fixed type if no ssz tags available #155

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Fix bytes as fixed type if no ssz tags available #155

merged 2 commits into from
Apr 9, 2024

Conversation

ferranbt
Copy link
Owner

@ferranbt ferranbt commented Apr 8, 2024

Closes #153

@ferranbt
Copy link
Owner Author

ferranbt commented Apr 8, 2024

@itsdevbear the PR changes the encoding generated in the #152 test case as well. The new change looks good to me. Can you verify as well?

@itsdevbear
Copy link
Contributor

itsdevbear commented Apr 8, 2024

LGTM, that Divide 2 stuff is just the chunkify math?

@ferranbt
Copy link
Owner Author

ferranbt commented Apr 8, 2024

LGTM, that Divide 2 stuff is just the chunkify math?

No chunk math there, it makes the int division and checks some corner cases (overflow, out of bounds).

@ferranbt ferranbt merged commit d6fd7ab into main Apr 9, 2024
1 check passed
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.

bug(generator): Generator cannot infer ssz-size for fixed length bytes.
2 participants