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: mutable access for all fields in BundleBuilder #1524

Merged
merged 5 commits into from
Jun 16, 2024

Conversation

jpgonzalezra
Copy link
Contributor

@jpgonzalezra jpgonzalezra commented Jun 14, 2024

This PR addresses Issue #1519 , let me know what do you think

Originally posted by @quentinv72 in paradigmxyz/reth#8264 (comment)
@rakita @gakonst

Closes #1519

@jpgonzalezra jpgonzalezra changed the title feat: mutable access to state_storage and revert_storage in BundleBui… feat: mutable access to state_storage and revert_storage in BundleBuilder Jun 14, 2024
@jpgonzalezra jpgonzalezra marked this pull request as ready for review June 14, 2024 14:43
pub fn state_storage(
mut self,
address: Address,
storage: &mut HashMap<U256, (U256, U256)>,
Copy link
Member

Choose a reason for hiding this comment

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

This is not what the requirement was.

It is to add get_state_storage_mut( function

Copy link
Member

Choose a reason for hiding this comment

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

While we are at it, it would be good to add mut getters for all fields

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my bad, i'm going to fix it 💪

@jpgonzalezra jpgonzalezra marked this pull request as draft June 15, 2024 21:57
@jpgonzalezra jpgonzalezra marked this pull request as ready for review June 15, 2024 23:58
@jpgonzalezra jpgonzalezra requested a review from rakita June 15, 2024 23:58
@jpgonzalezra jpgonzalezra changed the title feat: mutable access to state_storage and revert_storage in BundleBuilder feat: mutable access for all fields in BundleBuilder Jun 16, 2024
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm

@rakita rakita merged commit 8f4c153 into bluealloy:main Jun 16, 2024
25 checks passed
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.

Mutable access to state_storage in BundleBuilder
2 participants