Skip to content

Commit 21d9efc

Browse files
committed
solana: more initialize fast market order fixes
1 parent 74836d5 commit 21d9efc

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

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

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ pub struct InitializeFastMarketOrderAccounts<'ix> {
99
/// Lamports from this signer will be used to create the new fast market
1010
/// order account. This account will be the only authority allowed to
1111
/// close this account.
12-
/// TODO: Rename to "payer".
12+
// TODO: Rename to "payer".
1313
pub signer: &'ix Pubkey,
1414
/// The fast market order account pubkey (that is created by the
1515
/// instruction).
16-
/// TODO: Rename to "new_fast_market_order".
16+
// TODO: Rename to "new_fast_market_order".
1717
pub fast_market_order_account: &'ix Pubkey,
1818
/// Wormhole guardian set account used to check recovered pubkeys using
1919
/// [Self::guardian_set_signatures].
20-
/// TODO: Rename to "wormhole_guardian_set"
20+
// TODO: Rename to "wormhole_guardian_set"
2121
pub guardian_set: &'ix Pubkey,
2222
/// The guardian set signatures of fast market order VAA.
23-
/// TODO: Rename to "shim_guardian_signatures".
23+
// TODO: Rename to "shim_guardian_signatures".
2424
pub guardian_set_signatures: &'ix Pubkey,
2525
pub verify_vaa_shim_program: &'ix Pubkey,
26-
/// TODO: Remove.
26+
// TODO: Remove.
2727
pub system_program: &'ix Pubkey,
2828
}
2929

@@ -47,20 +47,6 @@ impl InitializeFastMarketOrderData {
4747
_padding: Default::default(),
4848
}
4949
}
50-
51-
/// Deserializes the InitializeFastMarketOrderData from a byte slice.
52-
///
53-
/// # Arguments
54-
///
55-
/// * `data` - A byte slice containing the InitializeFastMarketOrderData.
56-
///
57-
/// # Returns
58-
///
59-
/// Option<&Self> - The deserialized `InitializeFastMarketOrderData`` or
60-
/// `None` if the byte slice is not the correct length.
61-
pub fn from_bytes(data: &[u8]) -> Option<&Self> {
62-
bytemuck::try_from_bytes(data).ok()
63-
}
6450
}
6551

6652
/// Initializes the fast market order account.

0 commit comments

Comments
 (0)