Upgradeable programs called same as non-upgradeable (#14239) (#14347)

* Upgradeable programs called same as non-upgradeable

* nudge

(cherry picked from commit ab205b682a)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-12-30 06:53:16 +00:00
committed by GitHub
parent 7eb5db98cf
commit 4e6e415e40
8 changed files with 212 additions and 76 deletions

View File

@@ -62,7 +62,7 @@ pub trait InvokeContext {
/// Get the bank's active feature set
fn is_feature_active(&self, feature_id: &Pubkey) -> bool;
/// Get an account from a pre-account
fn get_account(&self, pubkey: &Pubkey) -> Option<Account>;
fn get_account(&self, pubkey: &Pubkey) -> Option<RefCell<Account>>;
}
#[derive(Clone, Copy, Debug, AbiExample)]
@@ -341,7 +341,7 @@ impl InvokeContext for MockInvokeContext {
fn is_feature_active(&self, _feature_id: &Pubkey) -> bool {
true
}
fn get_account(&self, _pubkey: &Pubkey) -> Option<Account> {
fn get_account(&self, _pubkey: &Pubkey) -> Option<RefCell<Account>> {
None
}
}