Skip to content

Commit

Permalink
Fix update_on_recovery call in ibc-clients/cw-context
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen1991 committed Apr 25, 2024
1 parent 005ae23 commit b87deea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ibc-clients/cw-context/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ impl<'a, C: ClientType<'a>> Context<'a, C> {
SudoMsg::MigrateClientStore(_) => {
self.set_substitute_prefix();
let substitute_client_state = self.client_state(&client_id)?;
let substitute_consensus_state =
self.consensus_state(&ClientConsensusStatePath::new(
client_id.clone(),
substitute_client_state.latest_height().revision_number(),
substitute_client_state.latest_height().revision_height(),
))?;

self.set_subject_prefix();
client_state.check_substitute(self, substitute_client_state.clone().into())?;
Expand All @@ -134,6 +140,7 @@ impl<'a, C: ClientType<'a>> Context<'a, C> {
self,
&self.client_id(),
substitute_client_state.into(),
substitute_consensus_state.into(),
)?;

ContractResult::success()
Expand Down

0 comments on commit b87deea

Please sign in to comment.