fix typo in error message and code comments in transaction_context (#34339)

fix typo in error message and code comments

Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
HaoranYi 2023-12-07 08:32:06 -06:00 committed by GitHub
parent ae7713177c
commit 9cb83069d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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<TransactionContext> 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 {