Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 0ab6ed7

Browse files
authored
chore: fix some typos (#6732)
Signed-off-by: largemouth <[email protected]>
1 parent 5221805 commit 0ab6ed7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

token/cli/src/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ async fn command_transfer(
12541254
token.get_associated_token_address(&sender_owner)
12551255
};
12561256

1257-
// the amount the user wants to tranfer, as a f64
1257+
// the amount the user wants to transfer, as a f64
12581258
let maybe_transfer_balance =
12591259
ui_amount.map(|ui_amount| spl_token::ui_amount_to_amount(ui_amount, mint_info.decimals));
12601260

@@ -1307,7 +1307,7 @@ async fn command_transfer(
13071307
// * its a system account, we are happy
13081308
// * its a non-account for this program, we error helpfully
13091309
// * its a token account for a different program, we error helpfully
1310-
// * otherwise its probabaly a program account owner of an ata, in which case we
1310+
// * otherwise its probably a program account owner of an ata, in which case we
13111311
// gate transfer with a flag
13121312
if let Some(recipient_account_data) = maybe_recipient_account_data {
13131313
let recipient_account_owner = recipient_account_data.owner;

token/cli/tests/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ async fn confidential_transfer(test_validator: &TestValidator, payer: &Keypair)
26672667
.unwrap();
26682668
assert!(bool::from(extension.allow_confidential_credits));
26692669

2670-
// disable and eanble non-confidential transfers for an account
2670+
// disable and enable non-confidential transfers for an account
26712671
process_test_command(
26722672
&config,
26732673
payer,

token/js/src/extensions/transferHook/state.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { unpackSeeds } from './seeds.js';
1010

1111
/** TransferHook as stored by the program */
1212
export interface TransferHook {
13-
/** The transfer hook update authrority */
13+
/** The transfer hook update authority */
1414
authority: PublicKey;
1515
/** The transfer hook program account */
1616
programId: PublicKey;
@@ -33,7 +33,7 @@ export function getTransferHook(mint: Mint): TransferHook | null {
3333
/** TransferHookAccount as stored by the program */
3434
export interface TransferHookAccount {
3535
/**
36-
* Whether or not this account is currently tranferring tokens
36+
* Whether or not this account is currently transferring tokens
3737
* True during the transfer hook cpi, otherwise false
3838
*/
3939
transferring: boolean;
@@ -105,7 +105,7 @@ export function getExtraAccountMetas(account: AccountInfo<Buffer>): ExtraAccount
105105
return extraAccountsList.extraAccounts.slice(0, extraAccountsList.count);
106106
}
107107

108-
/** Take an ExtraAccountMeta and construct that into an acutal AccountMeta */
108+
/** Take an ExtraAccountMeta and construct that into an actual AccountMeta */
109109
export async function resolveExtraAccountMeta(
110110
connection: Connection,
111111
extraMeta: ExtraAccountMeta,

token/js/test/e2e/recoverNested.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('recoverNested', () => {
9999
);
100100
}),
101101
it('success', async () => {
102-
// create destinaion associated token
102+
// create destination associated token
103103
const destinationAssociatedToken = await createAssociatedTokenAccount(
104104
connection,
105105
payer,

0 commit comments

Comments
 (0)