Skip to content

Commit

Permalink
chore: remove dumplicated check
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Dec 14, 2023
1 parent ac9850f commit b988d93
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions axon/src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -402,10 +398,6 @@ pub fn handle_msg_channel_open_try<C: Client>(
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(
Expand Down

0 comments on commit b988d93

Please sign in to comment.