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

Add non strict JSON decoding for engine Payloadv2 type #1740

Merged

Conversation

ferranbt
Copy link
Contributor

@ferranbt ferranbt commented Dec 3, 2024

Motivation

Closes #1733

Solution

Removed the deny_unknown_fields serde feature from the ExecutionPayloadV2 struct. Please let me know if you want me to add a test to make sure that arbitrary noncovered fields do not fail the parsing.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

makes sense given we never enforced it for v3

@mattsse mattsse enabled auto-merge (squash) December 3, 2024 10:31
auto-merge was automatically disabled December 3, 2024 10:35

Head branch was pushed to by a user without write access

@mattsse mattsse enabled auto-merge (squash) December 3, 2024 10:43
@mattsse mattsse merged commit 751327f into alloy-rs:main Dec 3, 2024
26 checks 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] Removing strict json decoding in ExecutionPayloadV2 with deny_unknown_fields
2 participants