Skip to content

Commit d6c3742

Browse files
committed
changed variable names
1 parent cc865ef commit d6c3742

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

solana/modules/matching-engine-testing/tests/shimful/fast_market_order_shim.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,12 @@ pub fn initialize_fast_market_order_shimful_instruction(
162162
.0;
163163

164164
let create_fast_market_order_accounts = InitializeFastMarketOrderFallbackAccounts {
165-
signer: &payer_signer.pubkey(),
166-
fast_market_order_account: &fast_market_order_account,
165+
payer: &payer_signer.pubkey(),
166+
new_fast_market_order: &fast_market_order_account,
167167
guardian_set: &guardian_signature_info.guardian_set_pubkey,
168-
guardian_set_signatures: &guardian_signature_info.guardian_signatures_pubkey,
168+
shim_guardian_signatures: &guardian_signature_info.guardian_signatures_pubkey,
169169
from_endpoint,
170170
verify_vaa_shim_program: &WORMHOLE_VERIFY_VAA_SHIM_PID,
171-
system_program: &solana_program::system_program::ID,
172171
};
173172

174173
InitializeFastMarketOrderFallback {

solana/programs/matching-engine/src/fallback/processor/initialize_fast_market_order.rs

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ pub struct InitializeFastMarketOrderAccounts<'ix> {
1010
/// Lamports from this signer will be used to create the new fast market
1111
/// order account. This account will be the only authority allowed to
1212
/// close this account.
13-
// TODO: Rename to "payer".
14-
pub signer: &'ix Pubkey, // 0
13+
pub payer: &'ix Pubkey, // 0
1514

1615
/// The from router endpoint account for the hash of the fast market order
1716
pub from_endpoint: &'ix Pubkey,
@@ -21,14 +20,10 @@ pub struct InitializeFastMarketOrderAccounts<'ix> {
2120
pub verify_vaa_shim_program: &'ix Pubkey, // 1
2221
pub guardian_set: &'ix Pubkey, // 2
2322
/// The guardian set signatures of fast market order VAA.
24-
// TODO: Rename to "shim_guardian_signatures".
25-
pub guardian_set_signatures: &'ix Pubkey, // 3
23+
pub shim_guardian_signatures: &'ix Pubkey, // 3
2624
/// The fast market order account pubkey (that is created by the
2725
/// instruction).
28-
// TODO: Rename to "new_fast_market_order".
29-
pub fast_market_order_account: &'ix Pubkey, // 4
30-
// TODO: Remove.
31-
pub system_program: &'ix Pubkey, // 5
26+
pub new_fast_market_order: &'ix Pubkey, // 4
3227
}
3328

3429
#[derive(Debug, Copy, Clone, Pod, Zeroable)]
@@ -71,14 +66,13 @@ pub struct InitializeFastMarketOrder<'ix> {
7166
impl InitializeFastMarketOrder<'_> {
7267
pub fn instruction(&self) -> Instruction {
7368
let InitializeFastMarketOrderAccounts {
74-
signer: payer,
75-
fast_market_order_account: new_fast_market_order,
69+
payer,
70+
new_fast_market_order,
7671
from_endpoint,
7772

7873
guardian_set: wormhole_guardian_set,
79-
guardian_set_signatures: shim_guardian_signatures,
74+
shim_guardian_signatures,
8075
verify_vaa_shim_program,
81-
system_program: _,
8276
} = self.accounts;
8377

8478
let accounts = vec![
@@ -195,13 +189,12 @@ mod test {
195189
InitializeFastMarketOrder {
196190
program_id: &Default::default(),
197191
accounts: InitializeFastMarketOrderAccounts {
198-
signer: &Default::default(),
199-
fast_market_order_account: &Default::default(),
192+
payer: &Default::default(),
193+
new_fast_market_order: &Default::default(),
200194
from_endpoint: &Default::default(),
201195
verify_vaa_shim_program: &Default::default(),
202196
guardian_set: &Default::default(),
203-
guardian_set_signatures: &Default::default(),
204-
system_program: &Default::default(),
197+
shim_guardian_signatures: &Default::default(),
205198
},
206199
data: InitializeFastMarketOrderData::new(
207200
FastMarketOrder::new(FastMarketOrderParams {

0 commit comments

Comments
 (0)