From bfc487b515e57ca6c374de2abc7551f6a62c5945 Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Wed, 6 Dec 2023 14:39:56 +0000 Subject: [PATCH] fix typo in error message and code comments --- sdk/src/transaction_context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/transaction_context.rs b/sdk/src/transaction_context.rs index 77cbb831fb0561..7df7fc96d67933 100644 --- a/sdk/src/transaction_context.rs +++ b/sdk/src/transaction_context.rs @@ -489,7 +489,7 @@ impl InstructionContext { self.instruction_accounts.len() as IndexOfAccount } - /// Assert that enough account were supplied to this Instruction + /// Assert that enough accounts were supplied to this Instruction pub fn check_number_of_instruction_accounts( &self, expected_at_least: IndexOfAccount, @@ -1152,7 +1152,7 @@ pub struct ExecutionRecord { impl From for ExecutionRecord { fn from(context: TransactionContext) -> Self { let accounts = Rc::try_unwrap(context.accounts) - .expect("transaction_context.accounts has unexpectd outstanding refs"); + .expect("transaction_context.accounts has unexpected outstanding refs"); let touched_account_count = accounts.touched_count() as u64; let accounts = accounts.into_accounts(); Self {