Skip to content

Commit

Permalink
solana: Add support for cancelling mint authority transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsriram committed Dec 12, 2024
1 parent 1dfa6f3 commit 9a40f7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub struct SetTokenAuthority<'info> {
/// CHECK: The constraints enforce this is valid mint authority
pub token_authority: UncheckedAccount<'info>,

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

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

#[account(
mut,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@
{
"name": "newAuthority",
"isMut": false,
"isSigner": true
"isSigner": false
},
{
"name": "pendingTokenAuthority",
Expand Down
4 changes: 2 additions & 2 deletions solana/ts/idl/3_0_0/ts/example_native_token_transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ export type ExampleNativeTokenTransfers = {
{
"name": "newAuthority",
"isMut": false,
"isSigner": true
"isSigner": false
},
{
"name": "pendingTokenAuthority",
Expand Down Expand Up @@ -3034,7 +3034,7 @@ export const IDL: ExampleNativeTokenTransfers = {
{
"name": "newAuthority",
"isMut": false,
"isSigner": true
"isSigner": false
},
{
"name": "pendingTokenAuthority",
Expand Down

0 comments on commit 9a40f7f

Please sign in to comment.