diff --git a/token/cli/src/command.rs b/token/cli/src/command.rs index ee675b4e853..980408d74c7 100644 --- a/token/cli/src/command.rs +++ b/token/cli/src/command.rs @@ -1254,7 +1254,7 @@ async fn command_transfer( token.get_associated_token_address(&sender_owner) }; - // the amount the user wants to tranfer, as a f64 + // the amount the user wants to transfer, as a f64 let maybe_transfer_balance = ui_amount.map(|ui_amount| spl_token::ui_amount_to_amount(ui_amount, mint_info.decimals)); @@ -1307,7 +1307,7 @@ async fn command_transfer( // * its a system account, we are happy // * its a non-account for this program, we error helpfully // * its a token account for a different program, we error helpfully - // * otherwise its probabaly a program account owner of an ata, in which case we + // * otherwise its probably a program account owner of an ata, in which case we // gate transfer with a flag if let Some(recipient_account_data) = maybe_recipient_account_data { let recipient_account_owner = recipient_account_data.owner; diff --git a/token/cli/tests/command.rs b/token/cli/tests/command.rs index f89d5b3d668..7da0be1bbd4 100644 --- a/token/cli/tests/command.rs +++ b/token/cli/tests/command.rs @@ -2667,7 +2667,7 @@ async fn confidential_transfer(test_validator: &TestValidator, payer: &Keypair) .unwrap(); assert!(bool::from(extension.allow_confidential_credits)); - // disable and eanble non-confidential transfers for an account + // disable and enable non-confidential transfers for an account process_test_command( &config, payer, diff --git a/token/js/src/extensions/transferHook/state.ts b/token/js/src/extensions/transferHook/state.ts index 748d326c8fe..f436a4213b1 100644 --- a/token/js/src/extensions/transferHook/state.ts +++ b/token/js/src/extensions/transferHook/state.ts @@ -10,7 +10,7 @@ import { unpackSeeds } from './seeds.js'; /** TransferHook as stored by the program */ export interface TransferHook { - /** The transfer hook update authrority */ + /** The transfer hook update authority */ authority: PublicKey; /** The transfer hook program account */ programId: PublicKey; @@ -33,7 +33,7 @@ export function getTransferHook(mint: Mint): TransferHook | null { /** TransferHookAccount as stored by the program */ export interface TransferHookAccount { /** - * Whether or not this account is currently tranferring tokens + * Whether or not this account is currently transferring tokens * True during the transfer hook cpi, otherwise false */ transferring: boolean; @@ -105,7 +105,7 @@ export function getExtraAccountMetas(account: AccountInfo): ExtraAccount return extraAccountsList.extraAccounts.slice(0, extraAccountsList.count); } -/** Take an ExtraAccountMeta and construct that into an acutal AccountMeta */ +/** Take an ExtraAccountMeta and construct that into an actual AccountMeta */ export async function resolveExtraAccountMeta( connection: Connection, extraMeta: ExtraAccountMeta, diff --git a/token/js/test/e2e/recoverNested.test.ts b/token/js/test/e2e/recoverNested.test.ts index 09a1697ea65..af563b7a181 100644 --- a/token/js/test/e2e/recoverNested.test.ts +++ b/token/js/test/e2e/recoverNested.test.ts @@ -99,7 +99,7 @@ describe('recoverNested', () => { ); }), it('success', async () => { - // create destinaion associated token + // create destination associated token const destinationAssociatedToken = await createAssociatedTokenAccount( connection, payer,