From b988d93384f8de01cf56d075955b86d702468384 Mon Sep 17 00:00:00 2001 From: liyukun Date: Thu, 14 Dec 2023 11:06:43 +0800 Subject: [PATCH] chore: remove dumplicated check --- axon/src/handler/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/axon/src/handler/mod.rs b/axon/src/handler/mod.rs index 4501338..90aeb34 100644 --- a/axon/src/handler/mod.rs +++ b/axon/src/handler/mod.rs @@ -331,10 +331,6 @@ pub fn handle_msg_channel_open_init( return Err(VerifyError::WrongConnectionCounterparty); } - if new_connection_args.ibc_handler_address != channel_args.ibc_handler_address { - return Err(VerifyError::WrongIBCHandlerAddress); - } - write_channel_commitment( commitment, &new.port_id.clone(), @@ -402,10 +398,6 @@ pub fn handle_msg_channel_open_try( return Err(VerifyError::WrongConnectionCounterparty); } - if new_connection_args.ibc_handler_address != channel_args.ibc_handler_address { - return Err(VerifyError::WrongIBCHandlerAddress); - } - let port_id = new.port_id.clone(); write_channel_commitment(