File tree 2 files changed +3
-3
lines changed
solana/programs/example-native-token-transfers/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub struct Initialize<'info> {
70
70
/// The custody account that holds tokens in locking mode and temporarily
71
71
/// holds tokens in burning mode.
72
72
/// CHECK: Use init_if_needed here to prevent a denial-of-service of the [`initialize`]
73
- /// function if the token account has already been created.
73
+ /// function if the token account has already been created.
74
74
pub custody : InterfaceAccount < ' info , token_interface:: TokenAccount > ,
75
75
76
76
/// CHECK: checked to be the appropriate token program when initialising the
@@ -121,7 +121,7 @@ pub struct InitializeMultisig<'info> {
121
121
#[ account(
122
122
constraint =
123
123
multisig. m == 1 && multisig. signers. contains( & common. token_authority. key( ) )
124
- @ NTTError :: InvalidMultisig ,
124
+ @ NTTError :: InvalidMultisig ,
125
125
) ]
126
126
pub multisig : InterfaceAccount < ' info , SplMultisig > ,
127
127
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct SplMultisig(spl_token_2022::state::Multisig);
12
12
impl AccountDeserialize for SplMultisig {
13
13
fn try_deserialize_unchecked ( buf : & mut & [ u8 ] ) -> anchor_lang:: Result < Self > {
14
14
spl_token_2022:: state:: Multisig :: unpack ( buf)
15
- . map ( |t| SplMultisig ( t ) )
15
+ . map ( SplMultisig )
16
16
. map_err ( Into :: into)
17
17
}
18
18
}
You can’t perform that action at this time.
0 commit comments