Skip to content

Commit

Permalink
Check both scenarios in ExecutionHub
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Oct 30, 2023
1 parent 23ed1fe commit 96457d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/contracts-core/contracts/hubs/ExecutionHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {ORIGIN_TREE_HEIGHT, SNAPSHOT_TREE_HEIGHT} from "../libs/Constants.sol";
import {
AlreadyExecuted,
AlreadyFailed,
DisputeTimeoutNotOver,
DuplicatedSnapshotRoot,
IncorrectDestinationDomain,
IncorrectMagicValue,
Expand Down Expand Up @@ -368,6 +369,8 @@ abstract contract ExecutionHub is AgentSecured, ReentrancyGuardUpgradeable, Exec
if (rootData.submittedAt == 0) revert IncorrectSnapshotRoot();
// Check that Notary who submitted the attestation is not in dispute
if (_notaryDisputeExists(rootData.notaryIndex)) revert NotaryInDispute();
// Check that Notary who submitted the attestation isn't in post-dispute timeout
if (_notaryDisputeTimeout(rootData.notaryIndex)) revert DisputeTimeoutNotOver();
}

/// @dev Formats the message execution receipt payload for the given hash and receipt data.
Expand Down

0 comments on commit 96457d4

Please sign in to comment.