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

Commit a80f8e4

Browse files
mvinesmergify[bot]
authored andcommitted
Clean up comments
1 parent 6bc5b89 commit a80f8e4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3medvrcM8s3UnkoYqqV3RAURii1ysuT5oD7t8nmfgJmj

associated-token-account/program/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//! Convention for associating token accounts with a primary account (such as a user wallet)
1+
//! Convention for associating token accounts with a user wallet
22
#![deny(missing_docs)]
33
#![forbid(unsafe_code)]
44

55
mod entrypoint;
66
pub mod processor;
77

8-
// Export current sdk types for downstream users building with a different sdk version
8+
// Export current SDK types for downstream users building with a different SDK version
99
pub use solana_program;
1010
use solana_program::{
1111
instruction::{AccountMeta, Instruction},
@@ -31,22 +31,22 @@ pub(crate) fn get_associated_token_address_and_bump_seed(
3131
)
3232
}
3333

34-
/// Derives the associated SPL token address for the given wallet address and SPL Token mint
34+
/// Derives the associated token account address for the given wallet address and token mint
3535
pub fn get_associated_token_address(
3636
wallet_address: &Pubkey,
3737
spl_token_mint_address: &Pubkey,
3838
) -> Pubkey {
3939
get_associated_token_address_and_bump_seed(&wallet_address, &spl_token_mint_address, &id()).0
4040
}
4141

42-
/// Create an associated token account for a wallet address
42+
/// Create an associated token account for the given wallet address and token mint
4343
///
4444
/// Accounts expected by this instruction:
4545
///
4646
/// 0. `[writeable,signer]` Funding account (must be a system account)
47-
/// 1. `[writeable]` Associated token account address
47+
/// 1. `[writeable]` Associated token account address to be created
4848
/// 2. `[]` Wallet address for the new associated token account
49-
/// 3. `[]` The SPL token mint for the associated token account
49+
/// 3. `[]` The token mint for new associated token account
5050
/// 4. `[]` System program
5151
/// 4. `[]` SPL Token program
5252
/// 5. `[]` Rent sysvar

associated-token-account/program/tests/functional.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn program_test(token_mint_address: Pubkey) -> ProgramTest {
1616
None, //processor!(processor::process_instruction),
1717
);
1818

19-
// Add Token program
19+
// Add SPL Token program
2020
pc.add_program(
2121
"spl_token",
2222
spl_token::id(),

0 commit comments

Comments
 (0)