We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d003059 commit 3e0d3e0Copy full SHA for 3e0d3e0
solana/programs/matching-engine/src/processor/admin/router_endpoint/update/cctp.rs
@@ -12,6 +12,17 @@ use common::wormhole_cctp_solana::cctp::token_messenger_minter_program::{
12
pub struct UpdateCctpRouterEndpoint<'info> {
13
admin: OwnerOnly<'info>,
14
15
+ #[account(
16
+ constraint = {
17
+ require_eq!(
18
+ args.chain,
19
+ router_endpoint.chain,
20
+ crate::error::MatchingEngineError::InvalidEndpoint,
21
+ );
22
+
23
+ true
24
+ }
25
+ )]
26
router_endpoint: ExistingMutRouterEndpoint<'info>,
27
28
/// CHECK: Seeds must be \["remote_token_messenger"\, remote_domain.to_string()] (CCTP Token
0 commit comments