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

feat: validate SSZ schemas for containers #877

Merged
merged 7 commits into from
Mar 15, 2024

Conversation

MegaRedHand
Copy link
Collaborator

Closes #875

@MegaRedHand MegaRedHand requested a review from a team as a code owner March 12, 2024 23:34
@MegaRedHand MegaRedHand self-assigned this Mar 12, 2024
@mpaulucci
Copy link
Collaborator

Im curious about what bug did this catch if there was any?

Comment on lines 66 to 67
{:blob_kzg_commitments,
{:list, TypeAliases.kzg_commitment(), ChainSpec.get("MAX_BLOB_COMMITMENTS_PER_BLOCK")}}
Copy link
Collaborator Author

@MegaRedHand MegaRedHand Mar 15, 2024

Choose a reason for hiding this comment

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

This one. Basically, the max_size for the list was missing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is also extensible, so we could potentially add more checks in the future.

Copy link
Collaborator

Choose a reason for hiding this comment

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

super cool!

@MegaRedHand MegaRedHand enabled auto-merge (squash) March 15, 2024 16:17
@MegaRedHand MegaRedHand merged commit dcfc49f into main Mar 15, 2024
15 checks passed
@MegaRedHand MegaRedHand deleted the add-ssz_ex-validate-schema branch March 15, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Validate container schemas at compile-time
2 participants