File tree 1 file changed +4
-4
lines changed
solana/programs/example-native-token-transfers/src/instructions
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -344,10 +344,10 @@ pub fn set_token_authority_one_step_unchecked(
344
344
pub struct SetTokenAuthorityChecked < ' info > {
345
345
#[ account(
346
346
constraint =
347
- ( common. multisig_token_authority. is_some ( ) &&
348
- common . multisig_token_authority . clone ( ) . unwrap ( ) . key ( ) == common. mint . mint_authority . unwrap ( ) ) ||
349
- ( common . multisig_token_authority. is_none ( ) &&
350
- common . token_authority . key ( ) == common . mint . mint_authority . unwrap ( ) )
347
+ common . mint . mint_authority . unwrap ( ) == common. multisig_token_authority. as_ref ( ) . map_or (
348
+ common. token_authority . key ( ) ,
349
+ | multisig_token_authority| multisig_token_authority . key ( )
350
+ )
351
351
@ NTTError :: InvalidMintAuthority
352
352
) ]
353
353
pub common : SetTokenAuthority < ' info > ,
You can’t perform that action at this time.
0 commit comments