check program owners (#15495)
* check program owners * BankSlotDelta should change because InstructionError variant added Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
		@@ -109,7 +109,7 @@ impl ExecuteTimings {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type BankStatusCache = StatusCache<Result<()>>;
 | 
			
		||||
#[frozen_abi(digest = "9wmxRM64shxBcCCjQtRMwCGkWun4VeUufNoHgLXwwFfz")]
 | 
			
		||||
#[frozen_abi(digest = "3ZaEt781qwhfQSE4DZPBHhng2S6MuimchRjkR9ZWzDFs")]
 | 
			
		||||
pub type BankSlotDelta = SlotDelta<Result<()>>;
 | 
			
		||||
type TransactionAccountRefCells = Vec<Rc<RefCell<Account>>>;
 | 
			
		||||
type TransactionAccountDepRefCells = Vec<(Pubkey, RefCell<Account>)>;
 | 
			
		||||
@@ -10466,7 +10466,7 @@ pub(crate) mod tests {
 | 
			
		||||
            bank.process_transaction(&tx),
 | 
			
		||||
            Err(TransactionError::InstructionError(
 | 
			
		||||
                0,
 | 
			
		||||
                InstructionError::InvalidAccountData
 | 
			
		||||
                InstructionError::InvalidAccountOwner
 | 
			
		||||
            ))
 | 
			
		||||
        );
 | 
			
		||||
        assert_eq!(bank.get_balance(&mint_keypair.pubkey()), 498); // transaction fee charged
 | 
			
		||||
@@ -10488,7 +10488,7 @@ pub(crate) mod tests {
 | 
			
		||||
            bank.process_transaction(&tx),
 | 
			
		||||
            Err(TransactionError::InstructionError(
 | 
			
		||||
                0,
 | 
			
		||||
                InstructionError::InvalidAccountData
 | 
			
		||||
                InstructionError::InvalidAccountOwner
 | 
			
		||||
            ))
 | 
			
		||||
        );
 | 
			
		||||
        assert_eq!(bank.get_balance(&mint_keypair.pubkey()), 496); // transaction fee charged
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user