Trait OnStateHook
pub trait OnStateHook: Send + 'static {
// Required method
fn on_state(
&mut self,
source: StateChangeSource,
state: &HashMap<Address, Account, RandomState>,
);
}
Available on crate feature
evm
only.Expand description
A hook that is called after each state change.
Required Methods§
fn on_state(
&mut self,
source: StateChangeSource,
state: &HashMap<Address, Account, RandomState>,
)
fn on_state( &mut self, source: StateChangeSource, state: &HashMap<Address, Account, RandomState>, )
Invoked with the source of the change and the state after each system call.