File tree 3 files changed +6
-5
lines changed
programs/example-native-token-transfers/src/instructions
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ pub struct SetTokenAuthority<'info> {
183
183
/// CHECK: The constraints enforce this is valid mint authority
184
184
pub token_authority : UncheckedAccount < ' info > ,
185
185
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.
187
187
pub new_authority : UncheckedAccount < ' info > ,
188
188
}
189
189
@@ -277,7 +277,8 @@ pub struct ClaimTokenAuthority<'info> {
277
277
|| new_authority. key( ) == token_authority. key( )
278
278
) @ NTTError :: InvalidPendingTokenAuthority
279
279
) ]
280
- pub new_authority : Signer < ' info > ,
280
+ /// CHECK: constraint ensures that this is the correct address
281
+ pub new_authority : UncheckedAccount < ' info > ,
281
282
282
283
#[ account(
283
284
mut ,
Original file line number Diff line number Diff line change 837
837
{
838
838
"name" : " newAuthority" ,
839
839
"isMut" : false ,
840
- "isSigner" : true
840
+ "isSigner" : false
841
841
},
842
842
{
843
843
"name" : " pendingTokenAuthority" ,
Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ export type ExampleNativeTokenTransfers = {
837
837
{
838
838
"name" : "newAuthority" ,
839
839
"isMut" : false ,
840
- "isSigner" : true
840
+ "isSigner" : false
841
841
} ,
842
842
{
843
843
"name" : "pendingTokenAuthority" ,
@@ -3034,7 +3034,7 @@ export const IDL: ExampleNativeTokenTransfers = {
3034
3034
{
3035
3035
"name" : "newAuthority" ,
3036
3036
"isMut" : false ,
3037
- "isSigner" : true
3037
+ "isSigner" : false
3038
3038
} ,
3039
3039
{
3040
3040
"name" : "pendingTokenAuthority" ,
You can’t perform that action at this time.
0 commit comments