Struct revm_primitives::state::Account
source · pub struct Account {
pub info: AccountInfo,
pub storage: HashMap<U256, StorageSlot>,
pub storage_cleared: bool,
pub is_destroyed: bool,
pub is_touched: bool,
pub is_not_existing: bool,
}
Fields§
§info: AccountInfo
Balance of the account.
storage: HashMap<U256, StorageSlot>
storage cache
storage_cleared: bool
If account is newly created, we will not ask database for storage values
is_destroyed: bool
if account is destroyed it will be scheduled for removal.
is_touched: bool
if account is touched
is_not_existing: bool
used only for pre spurious dragon hardforks where exisnting and empty was two saparate states. it became same state after EIP-161: State trie clearing
Implementations§
Trait Implementations§
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.