Skip to content

Commit 44f1e99

Browse files
committed
solana: Add support for cancelling mint authority transfer
1 parent e114dc9 commit 44f1e99

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

solana/programs/example-native-token-transfers/src/instructions/admin.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub struct SetTokenAuthority<'info> {
183183
/// CHECK: The constraints enforce this is valid mint authority
184184
pub token_authority: UncheckedAccount<'info>,
185185

186-
/// CHECK: This account will be the signer in the [claim_token_authority] instruction.
186+
/// CHECK: The rent payer of the [PendingTokenAuthority] storing this account will be the signer in the [claim_token_authority] instruction.
187187
pub new_authority: UncheckedAccount<'info>,
188188
}
189189

@@ -277,7 +277,8 @@ pub struct ClaimTokenAuthority<'info> {
277277
|| new_authority.key() == token_authority.key()
278278
) @ NTTError::InvalidPendingTokenAuthority
279279
)]
280-
pub new_authority: Signer<'info>,
280+
/// CHECK: constraint ensures that this is the correct address
281+
pub new_authority: UncheckedAccount<'info>,
281282

282283
#[account(
283284
mut,

solana/ts/idl/3_0_0/json/example_native_token_transfers.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@
837837
{
838838
"name": "newAuthority",
839839
"isMut": false,
840-
"isSigner": true
840+
"isSigner": false
841841
},
842842
{
843843
"name": "pendingTokenAuthority",

solana/ts/idl/3_0_0/ts/example_native_token_transfers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ export type ExampleNativeTokenTransfers = {
837837
{
838838
"name": "newAuthority",
839839
"isMut": false,
840-
"isSigner": true
840+
"isSigner": false
841841
},
842842
{
843843
"name": "pendingTokenAuthority",
@@ -3034,7 +3034,7 @@ export const IDL: ExampleNativeTokenTransfers = {
30343034
{
30353035
"name": "newAuthority",
30363036
"isMut": false,
3037-
"isSigner": true
3037+
"isSigner": false
30383038
},
30393039
{
30403040
"name": "pendingTokenAuthority",

0 commit comments

Comments
 (0)