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(provider): support ethCall optional blockId serialization #900

Merged

Conversation

zerosnacks
Copy link
Member

Motivation

Closes #896

Solution

  • Implements optional serialization of block, correctly handling the len

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.

could we also add a simple serde test ethcallparams?

Comment on lines 28 to 30
if let Some(block) = self.block {
seq.serialize_element(&block)?;
}
Copy link
Member

Choose a reason for hiding this comment

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

here we need to always serialize if overrides are set because overrides must be third argument

@DaniPopes DaniPopes requested a review from mattsse June 17, 2024 12:34
crates/provider/Cargo.toml Outdated Show resolved Hide resolved
@DaniPopes DaniPopes requested a review from mattsse June 17, 2024 12:45
@mattsse mattsse merged commit fd6116e into main Jun 17, 2024
22 checks passed
@mattsse mattsse deleted the zerosnacks/support-optional-blockid-serialization-ethcall branch June 17, 2024 12:48
onbjerg added a commit that referenced this pull request Jun 18, 2024
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
…-rs#900)

* make block optional, update len

* add test cases, accomplishing expected if I understood the requirements correctly

* preserve_order not required
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.

[Feature] Support ethCall optional blockId serialization
3 participants