-
Notifications
You must be signed in to change notification settings - Fork 329
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
[Feature] Add serde rountrip tests for executionpayload #2004
Comments
right now if we have a and extra fields just implicitly get ignored. but obv you can no longer roundtrip then. is this the behavior you're referring to? |
exactly which means the untagged serde for deserialize is wrong I guess we could solve this with deny_unknown_fields but could be problematic as well |
afaik we can't use deny_unknown_field because we rely on flatten already and the two are incompatible i'd like to work on this. do you think it makes sense to start with a test that asserts this faulty behavior and then work on a custom deserde impl in a follow up PR? |
yep great, assigned |
Component
rpc
Describe the feature you would like
for these we need some sanity serde rountrip tests:
alloy/crates/rpc-types-engine/src/payload.rs
Lines 827 to 832 in 0fbc37d
because I believe V3 deserde doesn't behave as expected and we likely need manual deserde impl
see also: alloy-rs/op-alloy#416 (comment)
Additional context
No response
The text was updated successfully, but these errors were encountered: