diff --git a/crates/revm/src/db/states/bundle_state.rs b/crates/revm/src/db/states/bundle_state.rs
index 8dd4edfe26..bd916b7ad6 100644
--- a/crates/revm/src/db/states/bundle_state.rs
+++ b/crates/revm/src/db/states/bundle_state.rs
@@ -233,6 +233,53 @@ impl BundleBuilder {
pub fn get_states(&self) -> &HashSet
{
&self.states
}
+
+ /// Mutable getter for `states` field
+ pub fn get_states_mut(&mut self) -> &mut HashSet {
+ &mut self.states
+ }
+
+ /// Mutable getter for `state_original` field
+ pub fn get_state_original_mut(&mut self) -> &mut HashMap {
+ &mut self.state_original
+ }
+
+ /// Mutable getter for `state_present` field
+ pub fn get_state_present_mut(&mut self) -> &mut HashMap {
+ &mut self.state_present
+ }
+
+ /// Mutable getter for `state_storage` field
+ pub fn get_state_storage_mut(&mut self) -> &mut HashMap> {
+ &mut self.state_storage
+ }
+
+ /// Mutable getter for `reverts` field
+ pub fn get_reverts_mut(&mut self) -> &mut BTreeSet<(u64, Address)> {
+ &mut self.reverts
+ }
+
+ /// Mutable getter for `revert_range` field
+ pub fn get_revert_range_mut(&mut self) -> &mut RangeInclusive {
+ &mut self.revert_range
+ }
+
+ /// Mutable getter for `revert_account` field
+ pub fn get_revert_account_mut(
+ &mut self,
+ ) -> &mut HashMap<(u64, Address), Option