Trait revm_primitives::db::components::state::StateRef
source · pub trait StateRef {
type Error;
// Required methods
fn basic(&self, address: B160) -> Result<Option<AccountInfo>, Self::Error>;
fn code_by_hash(&self, code_hash: B256) -> Result<Bytecode, Self::Error>;
fn storage(&self, address: B160, index: U256) -> Result<U256, Self::Error>;
}
Required Associated Types§
Required Methods§
sourcefn basic(&self, address: B160) -> Result<Option<AccountInfo>, Self::Error>
fn basic(&self, address: B160) -> Result<Option<AccountInfo>, Self::Error>
Whether account at address exists. Get basic account information.