From 407d485264c4a2be5be336a09ebd1049602a9d07 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Sun, 6 Feb 2022 23:57:30 +0200 Subject: [PATCH] feat: expose account_mut on MemoryStackState --- src/executor/stack/memory.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/executor/stack/memory.rs b/src/executor/stack/memory.rs index d3a9c7d69..0ec07eabf 100644 --- a/src/executor/stack/memory.rs +++ b/src/executor/stack/memory.rs @@ -555,6 +555,11 @@ impl<'backend, 'config, B: Backend> MemoryStackState<'backend, 'config, B> { } } + /// Returns a mutable reference to an account given its address + pub fn account_mut(&mut self, address: H160) -> &mut MemoryStackAccount { + self.substate.account_mut(address, self.backend) + } + #[must_use] pub fn deconstruct( self,