Skip to content

Commit

Permalink
fetch counterparty upgrade sequence from src chain (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega authored Jan 22, 2024
1 parent ee971f3 commit 2c135fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/relayer/src/link/relay_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> RelayPath<ChainA, ChainB> {
.build_channel_proofs(self.src_port_id(), src_channel_id, event.height)
.map_err(|e| LinkError::channel(ChannelError::channel_proof(e)))?;

let counterparty_upgrade_sequence = dst_channel.upgrade_sequence;
let counterparty_upgrade_sequence = self.src_channel(QueryHeight::Latest)?.upgrade_sequence;

// Build the domain type message
let new_msg = MsgChannelCloseConfirm {
Expand Down Expand Up @@ -1338,7 +1338,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> RelayPath<ChainA, ChainB> {
)
.map_err(|e| LinkError::packet_proofs_constructor(self.dst_chain().id(), e))?;

let counterparty_upgrade_sequence = self.dst_channel(QueryHeight::Latest)?.upgrade_sequence;
let counterparty_upgrade_sequence = self.src_channel(QueryHeight::Latest)?.upgrade_sequence;

let msg = MsgTimeoutOnClose::new(
packet.clone(),
Expand Down

0 comments on commit 2c135fc

Please sign in to comment.