Trait evm_adapters::evmodin::HostExt [−][src]
pub trait HostExt: Host {
fn get_code(&self, address: &Address) -> Option<&Bytes>;
fn set_code(&mut self, address: Address, code: Bytes);
fn set_balance(&mut self, address: Address, balance: U256);
}
Expand description
Helper trait for exposing additional functionality over EVMOdin Hosts
Required methods
Gets the bytecode at the specified address. None
if the specified address
is not a contract account.
Sets the bytecode at the specified address to the provided value.
fn set_balance(&mut self, address: Address, balance: U256)
fn set_balance(&mut self, address: Address, balance: U256)
Sets the account’s balance to the provided value.