Struct revm_primitives::state::AccountInfo
source · pub struct AccountInfo {
pub balance: U256,
pub nonce: u64,
pub code_hash: B256,
pub code: Option<Bytecode>,
}
Expand description
AccountInfo account information.
Fields§
§balance: U256
Account balance.
nonce: u64
Account nonce.
code_hash: B256
code hash,
code: Option<Bytecode>
code: if None, code_by_hash
will be used to fetch it if code needs to be loaded from
inside of revm.
Implementations§
Trait Implementations§
source§impl Clone for AccountInfo
impl Clone for AccountInfo
source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccountInfo
impl Debug for AccountInfo
source§impl Default for AccountInfo
impl Default for AccountInfo
source§impl From<AccountInfo> for Account
impl From<AccountInfo> for Account
source§fn from(info: AccountInfo) -> Self
fn from(info: AccountInfo) -> Self
Converts to this type from the input type.