This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +155
-109
lines changed Expand file tree Collapse file tree 3 files changed +155
-109
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ pub enum TokenError {
13
13
/// Insufficient funds for the operation requested.
14
14
#[ error( "Insufficient funds" ) ]
15
15
InsufficientFunds ,
16
+ /// Invalid Mint.
17
+ #[ error( "Invalid Mint" ) ]
18
+ InvalidMint ,
16
19
/// Account not associated with this Mint.
17
20
#[ error( "Account not associated with this Mint" ) ]
18
21
MintMismatch ,
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ pub enum TokenInstruction {
37
37
/// The freeze authority/multisignature of the mint.
38
38
freeze_authority : COption < Pubkey > ,
39
39
} ,
40
- /// Initializes a new account to hold tokens. If this account is associated with the native mint
41
- /// then the token balance of the initialized account will be equal to the amount of SOL in the account.
40
+ /// Initializes a new account to hold tokens. If this account is associated with the native
41
+ /// mint then the token balance of the initialized account will be equal to the amount of SOL
42
+ /// in the account. If this account is associated with another mint, that mint must be
43
+ /// initialized before this command can succeed.
42
44
///
43
45
/// The `InitializeAccount` instruction requires no signers and MUST be included within
44
46
/// the same Transaction as the system program's `CreateInstruction` that creates the account
You can’t perform that action at this time.
0 commit comments