File tree 1 file changed +6
-10
lines changed
solana/programs/example-native-token-transfers/tests/sdk
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,13 @@ pub trait NTTAccounts {
107
107
} = args;
108
108
let mut hasher = Keccak256 :: new ( ) ;
109
109
110
- hasher. update ( & amount. to_be_bytes ( ) ) ;
111
- hasher. update ( & recipient_chain. id . to_be_bytes ( ) ) ;
112
- hasher. update ( & recipient_address) ;
113
- hasher. update ( & [ * should_queue as u8 ] ) ;
110
+ hasher. update ( amount. to_be_bytes ( ) ) ;
111
+ hasher. update ( recipient_chain. id . to_be_bytes ( ) ) ;
112
+ hasher. update ( recipient_address) ;
113
+ hasher. update ( [ * should_queue as u8 ] ) ;
114
114
115
115
let ( session_authority, _) = Pubkey :: find_program_address (
116
- & [
117
- SESSION_AUTHORITY_SEED . as_ref ( ) ,
118
- sender. as_ref ( ) ,
119
- & hasher. finalize ( ) ,
120
- ] ,
116
+ & [ SESSION_AUTHORITY_SEED , sender. as_ref ( ) , & hasher. finalize ( ) ] ,
121
117
& self . program ( ) ,
122
118
) ;
123
119
session_authority
@@ -141,7 +137,7 @@ pub trait NTTAccounts {
141
137
142
138
fn token_authority ( & self ) -> Pubkey {
143
139
let ( token_authority, _) =
144
- Pubkey :: find_program_address ( & [ TOKEN_AUTHORITY_SEED . as_ref ( ) ] , & self . program ( ) ) ;
140
+ Pubkey :: find_program_address ( & [ TOKEN_AUTHORITY_SEED ] , & self . program ( ) ) ;
145
141
token_authority
146
142
}
147
143
You can’t perform that action at this time.
0 commit comments