Function balance_increment_state
pub fn balance_increment_state<DB>(
balance_increments: &HashMap<Address, u128, RandomState>,
state: &mut State<DB>,
) -> Result<HashMap<Address, Account, RandomState>, BlockExecutionError>where
DB: Database,
Available on crate feature
evm
only.Expand description
Creates an EvmState
from a map of balance increments and the current state
to load accounts from. No balance increment is done in the function.
Zero balance increments are ignored and won’t create state entries.