-
Notifications
You must be signed in to change notification settings - Fork 554
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(StateBuilder): switch builder option from without_bundle to with_bundle #688
Conversation
/// This will initialize cache to this state. | ||
pub with_cache_prestate: Option<CacheState>, | ||
/// Do we want to create reverts and update bundle state. | ||
/// Default is true. | ||
pub without_bundle_update: bool, | ||
/// Default is false. | ||
pub with_bundle_update: bool, | ||
/// Do we want to merge transitions in background. | ||
/// This will allows evm to continue executing. | ||
/// Default is false. |
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.
Should all of these be private(pub crate) instead?
I don't think they should be mut accessible from the outside
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.
Makes sense
pub fn without_bundle_update(self) -> Self { | ||
/// This is needed option if we want to create reverts | ||
/// and getting output of changed states. | ||
pub fn witho_bundle_update(self) -> Self { |
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.
pub fn witho_bundle_update(self) -> Self { | |
pub fn with_bundle_update(self) -> Self { |
…_bundle (bluealloy#688) * feat(StateBuilder): make builder option become * make private field, nit rename * fix tests
…_bundle (bluealloy#688) * feat(StateBuilder): make builder option become * make private field, nit rename * fix tests
…_bundle (bluealloy#688) * feat(StateBuilder): make builder option become * make private field, nit rename * fix tests
In general output state and creating of revert is better to be something to be enabled, and not disabled.