Skip to content

Commit a391051

Browse files
authored
feat: expose account_mut on MemoryStackState (#92)
1 parent aff8692 commit a391051

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/executor/stack/memory.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@ impl<'backend, 'config, B: Backend> MemoryStackState<'backend, 'config, B> {
555555
}
556556
}
557557

558+
/// Returns a mutable reference to an account given its address
559+
pub fn account_mut(&mut self, address: H160) -> &mut MemoryStackAccount {
560+
self.substate.account_mut(address, self.backend)
561+
}
562+
558563
#[must_use]
559564
pub fn deconstruct(
560565
self,

0 commit comments

Comments
 (0)