Struct revm::SubRoutine
source[−]pub struct SubRoutine { /* private fields */ }
Implementations
do cleanup and return modified state Do take that filthy stuff and return it back. Some states of Filth enum are internaly used but in output it can only be:
- Dirty with empty Map (Map is internaly used). Only changed slots are returned in
storage
or - Destroyed if selfdestruct was called.
use it only if you know that acc is hot
pub fn transfer<DB: Database>(
&mut self,
from: H160,
to: H160,
value: U256,
db: &mut DB
) -> Result<(bool, bool), Return>
return if it has collition of addresses
pub fn selfdestruct<DB: Database>(
&mut self,
address: H160,
target: H160,
db: &mut DB
) -> SelfDestructResult
pub fn selfdestruct<DB: Database>(
&mut self,
address: H160,
target: H160,
db: &mut DB
) -> SelfDestructResult
transfer balance from address to target. Check if target exist/is_cold
load account into memory. return if it is cold or hot accessed
account should already be present in our state. returns (original,present,new) slot