diff --git a/runtime/src/account_overrides.rs b/runtime/src/account_overrides.rs index 0761610063..d5d3286426 100644 --- a/runtime/src/account_overrides.rs +++ b/runtime/src/account_overrides.rs @@ -10,6 +10,10 @@ pub struct AccountOverrides { } impl AccountOverrides { + pub fn upsert_account_overrides(&mut self, other: AccountOverrides) { + self.accounts.extend(other.accounts); + } + pub fn set_account(&mut self, pubkey: &Pubkey, account: Option) { match account { Some(account) => self.accounts.insert(*pubkey, account),