-
Notifications
You must be signed in to change notification settings - Fork 644
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
chore: make impl Default for StateBuilder
generic
#690
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more verbose than it was. Using EmptyDB
removes the need to specify the type for default()
30f8ace
to
089fbf5
Compare
This is only true with |
0a9ef87
to
acf0008
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending conflicts, but lgtm!
I added State::builder()
inside State so StateBuilder
doesn't need to be specified in usually flows. So we can do State::builder().build()
pattern.
acf0008
to
ff6a9a4
Compare
chore: update methods
ff6a9a4
to
83a6d6b
Compare
Re Based |
* chore: make `impl Default for StateBuilder` generic chore: update methods * Update crates/revm/src/db/states/state_builder.rs
* chore: make `impl Default for StateBuilder` generic chore: update methods * Update crates/revm/src/db/states/state_builder.rs
Follow-up to #687, see #687 (comment)