Trait StateRef
pub trait StateRef {
type Error;
// Required methods
fn basic(
&self,
address: Address,
) -> Result<Option<AccountInfo>, Self::Error>;
fn code_by_hash(
&self,
code_hash: FixedBytes<32>,
) -> Result<Bytecode, Self::Error>;
fn storage(
&self,
address: Address,
index: Uint<256, 4>,
) -> Result<Uint<256, 4>, Self::Error>;
}
Required Associated Types§
type Error
Required Methods§
fn basic(&self, address: Address) -> Result<Option<AccountInfo>, Self::Error>
fn basic(&self, address: Address) -> Result<Option<AccountInfo>, Self::Error>
Get basic account information.
fn code_by_hash(
&self,
code_hash: FixedBytes<32>,
) -> Result<Bytecode, Self::Error>
fn code_by_hash( &self, code_hash: FixedBytes<32>, ) -> Result<Bytecode, Self::Error>
Get account code by its hash