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

rpc-types-anvil: Implement Default to NodeForkConfig #844

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

moricho
Copy link
Contributor

@moricho moricho commented Jun 7, 2024

Motivation

Foundry needs the default value of NodeForkConfig.
ref: https://github.com/foundry-rs/foundry/blob/7e6ebaf09dcb1ca6f7087d87d20d8ef9435a3ec6/crates/anvil/src/eth/api.rs#L1766-L1776

Also, the original NodeForkConfig on the foundry side implements Default.
ref: https://github.com/foundry-rs/foundry/blob/7e6ebaf09dcb1ca6f7087d87d20d8ef9435a3ec6/crates/anvil/core/src/types.rs#L185-L192

related to: foundry-rs/foundry#8084, #838, and foundry-rs/foundry#8098

Solution

Adds Default derive to NodeForkConfig struct

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mattsse mattsse merged commit f6ebef2 into alloy-rs:main Jun 7, 2024
24 checks passed
@moricho moricho deleted the nodeforkconfig-default branch June 7, 2024 10: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