pub struct AccountOverrides { /* private fields */ }
Expand description
Encapsulates overridden accounts, typically used for transaction simulations
Implementations§
source§impl AccountOverrides
impl AccountOverrides
pub fn set_account(&mut self, pubkey: &Pubkey, account: Option<AccountSharedData>)
sourcepub fn set_slot_history(&mut self, slot_history: Option<AccountSharedData>)
pub fn set_slot_history(&mut self, slot_history: Option<AccountSharedData>)
Sets in the slot history
Note: no checks are performed on the correctness of the contained data
sourcepub fn get(&self, pubkey: &Pubkey) -> Option<&AccountSharedData>
pub fn get(&self, pubkey: &Pubkey) -> Option<&AccountSharedData>
Gets the account if it’s found in the list of overrides
Trait Implementations§
source§impl Default for AccountOverrides
impl Default for AccountOverrides
source§fn default() -> AccountOverrides
fn default() -> AccountOverrides
Returns the “default value” for a type. Read more