Skip to content

Commit

Permalink
chore: remove redundant words in comment
Browse files Browse the repository at this point in the history
Signed-off-by: depthlending <[email protected]>
  • Loading branch information
depthlending committed Dec 11, 2024
1 parent d0b3d49 commit 19370e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions protocol-units/bridge/util/src/states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ impl TransferState {
// already present invalid
Err(InvalidEventError::InitAnAlreadyExist)
}
// Lock event must on on the counter part chain.
// Lock event must on the counter part chain.
(BridgeContractEvent::Locked(_), TransferStateType::Initialized) => (event.chain
!= self.init_chain)
.then_some(())
.ok_or(InvalidEventError::BadChain),
// Lock event is only applied on Initialized swap state
(BridgeContractEvent::Locked(details), _) => Err(InvalidEventError::BadEvent(format!("Received a locked event with state not Initialized, transfer_id: {} state:{} details: {details:?}", self.transfer_id, self.state))),
// CounterPartCompleted event must on on the counter part chain.
// CounterPartCompleted event must on the counter part chain.
(BridgeContractEvent::CounterPartyCompleted(_, _), TransferStateType::Locked) => {
(event.chain != self.init_chain)
.then_some(())
Expand All @@ -102,7 +102,7 @@ impl TransferState {
(BridgeContractEvent::CounterPartyCompleted(_, _), _) => {
Err(InvalidEventError::BadEvent(format!("Received a CounterPartCompleted event with state not Locked, transfer_id: {} state:{}", self.transfer_id, self.state)))
}
// InitiatorCompleted event must on on the init chain.
// InitiatorCompleted event must on the init chain.
(BridgeContractEvent::InitiatorCompleted(_), TransferStateType::SecretReceived) => {
(event.chain == self.init_chain)
.then_some(())
Expand Down
2 changes: 1 addition & 1 deletion util/movement-algs/src/grouping_heuristic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::fmt::Debug;
/// A failure type for a single member of the heuristically formed group.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum ElementalFailure<T> {
/// An instrumental failure is intended to be be passed on in future iterations.
/// An instrumental failure is intended to be passed on in future iterations.
Instrumental(T),
/// A terminal failure is intended to be dropped or pause the execution altogether.
Terminal(T),
Expand Down

0 comments on commit 19370e7

Please sign in to comment.