pub trait StateRef {
type Error;
// Required methods
fn basic(
&self,
address: Address,
) -> Result<Option<AccountInfo>, Self::Error>;
fn code_by_hash(&self, code_hash: B256) -> Result<Bytecode, Self::Error>;
fn storage(
&self,
address: Address,
index: U256,
) -> Result<U256, Self::Error>;
}
Required Associated Types§
Required Methods§
Sourcefn basic(&self, address: Address) -> Result<Option<AccountInfo>, Self::Error>
fn basic(&self, address: Address) -> Result<Option<AccountInfo>, Self::Error>
Get basic account information.