Skip to content

Commit

Permalink
chore: fix some typos (#6732)
Browse files Browse the repository at this point in the history
Signed-off-by: largemouth <largemouth@aliyun.com>
  • Loading branch information
largemouth committed May 15, 2024
1 parent 5221805 commit 0ab6ed7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions token/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion token/cli/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions token/js/src/extensions/transferHook/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -105,7 +105,7 @@ export function getExtraAccountMetas(account: AccountInfo<Buffer>): 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,
Expand Down
2 changes: 1 addition & 1 deletion token/js/test/e2e/recoverNested.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('recoverNested', () => {
);
}),
it('success', async () => {
// create destinaion associated token
// create destination associated token
const destinationAssociatedToken = await createAssociatedTokenAccount(
connection,
payer,
Expand Down

0 comments on commit 0ab6ed7

Please sign in to comment.