Skip to content

Commit

Permalink
fix typo in error message and code comments in transaction_context (#…
Browse files Browse the repository at this point in the history
…34339)

fix typo in error message and code comments

Co-authored-by: HaoranYi <haoran.yi@solana.com>
  • Loading branch information
HaoranYi and HaoranYi authored Dec 7, 2023
1 parent ae77131 commit 9cb8306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/transaction_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9cb8306

Please sign in to comment.