Skip to content

Commit 66c04f8

Browse files
author
Bengt Lofgren
committed
do not have to check from endpoint cctp
1 parent 3ad6d50 commit 66c04f8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,6 @@ pub fn prepare_order_response_cctp_shim(
289289
MatchingEngineError::InvalidEndpoint
290290
);
291291

292-
// Check that the from endpoint protocol is cctp or local
293-
require!(
294-
matches!(
295-
from_endpoint_account.protocol,
296-
MessageProtocol::Cctp { .. } | MessageProtocol::Local { .. }
297-
),
298-
MatchingEngineError::InvalidEndpoint
299-
);
300-
301292
// Check that to endpoint chain is equal to the fast_market_order target_chain
302293
require_eq!(
303294
to_endpoint_account.chain,

0 commit comments

Comments
 (0)