File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
solana/programs/matching-engine/src/fallback/processor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,14 @@ pub fn initialize_fast_market_order(
123
123
fast_market_order,
124
124
guardian_set_bump,
125
125
_padding : _,
126
- } = * data;
126
+ } = data;
127
127
// Start of cpi call to verify the shim.
128
128
// ------------------------------------------------------------------------------------------------
129
129
let fast_market_order_vaa_digest = fast_market_order. digest ( ) ;
130
130
let fast_market_order_vaa_digest_hash =
131
131
keccak:: Hash :: try_from_slice ( & fast_market_order_vaa_digest) . unwrap ( ) ;
132
132
let verify_hash_data =
133
- VerifyHashData :: new ( guardian_set_bump, fast_market_order_vaa_digest_hash) ;
133
+ VerifyHashData :: new ( * guardian_set_bump, fast_market_order_vaa_digest_hash) ;
134
134
let verify_hash_shim_ix = VerifyHash {
135
135
program_id : & wormhole_svm_definitions:: solana:: VERIFY_VAA_SHIM_PROGRAM_ID ,
136
136
accounts : VerifyHashAccounts {
@@ -187,7 +187,7 @@ pub fn initialize_fast_market_order(
187
187
let discriminator = FastMarketOrderState :: discriminator ( ) ;
188
188
fast_market_order_account_data[ 0 ..8 ] . copy_from_slice ( & discriminator) ;
189
189
190
- let fast_market_order_bytes = bytemuck:: bytes_of ( & data . fast_market_order ) ;
190
+ let fast_market_order_bytes = bytemuck:: bytes_of ( fast_market_order) ;
191
191
192
192
// Write the fast_market_order struct to the account
193
193
fast_market_order_account_data[ 8 ..8_usize . saturating_add ( fast_market_order_bytes. len ( ) ) ]
You can’t perform that action at this time.
0 commit comments