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: correctly serialize eth_call params #778

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented May 24, 2024

null is invalid for state overrides, and also it's off spec so don't serialize it if None.
This requires a manual serde::Serialize implementation since #[serde(skip_serializing_if)] does not work on tuple structs.

Noticed in foundry-rs/foundry#7990

Regressed in #763

@DaniPopes DaniPopes merged commit 5940871 into main May 24, 2024
24 checks passed
@DaniPopes DaniPopes deleted the dani/ethcall-overrides2 branch May 24, 2024 18:41
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
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.

2 participants