Skip to content

Commit

Permalink
Merge pull request #693 from movementlabsxyz/0xmovses/update-error
Browse files Browse the repository at this point in the history
(HAL-02) update: error message
  • Loading branch information
andyjsbell authored Oct 18, 2024
2 parents f60a4b5 + 0938785 commit afd82fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ contract AtomicBridgeCounterparty is IAtomicBridgeCounterparty, OwnableUpgradeab

emit BridgeTransferAborted(bridgeTransferId);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ contract AtomicBridgeCounterpartyMOVE is IAtomicBridgeCounterpartyMOVE, OwnableU
if (details.state != MessageState.PENDING) revert BridgeTransferStateNotPending();
bytes32 computedHash = keccak256(abi.encodePacked(preImage));
if (computedHash != details.hashLock) revert InvalidSecret();
if (block.timestamp > details.timeLock) revert TimeLockNotExpired();
if (block.timestamp > details.timeLock) revert TimeLockExpired();

details.state = MessageState.COMPLETED;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface IAtomicBridgeCounterpartyMOVE {
error BridgeTransferStateNotInitialized();
error BridgeTransferStateNotPending();
error InsufficientMOVEBalance();
error TimeLockExpired();
error TimeLockNotExpired();
error ZeroAddress();
error Unauthorized();
Expand Down

0 comments on commit afd82fb

Please sign in to comment.