Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Oct 4, 2023
1 parent cfa53dd commit 50ad115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallet-ismp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,11 @@ impl<T: Config> Pallet<T> {
}
Ok(MessageResult::Response(res)) => {
let StateMachineHeight { id, height } = match message {
Message::Request(ref request) => request.proof.height.clone(),
Message::Response(ref request) => request.proof.height.clone(),
_ => unreachable!(),
};
// update the messaging heights
if LatestMessagingHeight::<T>::get(&id) > height {
if LatestMessagingHeight::<T>::get(&id) < height {
LatestMessagingHeight::<T>::insert(id, height);
}
debug!(target: "ismp-modules", "Module Callback Results {:?}", ModuleCallbackResult::Response(res));
Expand All @@ -530,7 +530,7 @@ impl<T: Config> Pallet<T> {
_ => unreachable!(),
};
// update the messaging heights
if LatestMessagingHeight::<T>::get(&id) > height {
if LatestMessagingHeight::<T>::get(&id) < height {
LatestMessagingHeight::<T>::insert(id, height);
}
debug!(target: "ismp-modules", "Module Callback Results {:?}", ModuleCallbackResult::Request(res));
Expand Down

0 comments on commit 50ad115

Please sign in to comment.