Skip to content

Commit

Permalink
Merge pull request #4611 from connext/dispute-block-events
Browse files Browse the repository at this point in the history
macro l1 - dispute block events
  • Loading branch information
LayneHaber authored Jul 3, 2023
2 parents 8e46169 + 210c36b commit a4cea83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ contract RootManager is ProposedOwnable, IRootManager, WatcherClient, DomainInde
*/
function setMinDisputeBlocks(uint256 _minDisputeBlocks) public onlyOwner {
if (_minDisputeBlocks == minDisputeBlocks) revert RootManager_setMinDisputeBlocks__SameMinDisputeBlocksAsBefore();
emit MinDisputeBlocksUpdated(_minDisputeBlocks, minDisputeBlocks);
emit MinDisputeBlocksUpdated(minDisputeBlocks, _minDisputeBlocks);
minDisputeBlocks = _minDisputeBlocks;
}

Expand All @@ -333,7 +333,7 @@ contract RootManager is ProposedOwnable, IRootManager, WatcherClient, DomainInde
function setDisputeBlocks(uint256 _disputeBlocks) public onlyOwner {
if (_disputeBlocks < minDisputeBlocks) revert RootManager_setDisputeBlocks__DisputeBlocksLowerThanMin();
if (_disputeBlocks == disputeBlocks) revert RootManager_setDisputeBlocks__SameDisputeBlocksAsBefore();
emit DisputeBlocksUpdated(_disputeBlocks, disputeBlocks);
emit DisputeBlocksUpdated(disputeBlocks, _disputeBlocks);
disputeBlocks = _disputeBlocks;
}

Expand All @@ -343,7 +343,7 @@ contract RootManager is ProposedOwnable, IRootManager, WatcherClient, DomainInde
*/
function setDelayBlocks(uint256 _delayBlocks) public onlyOwner {
require(_delayBlocks != delayBlocks, "!delayBlocks");
emit DelayBlocksUpdated(_delayBlocks, delayBlocks);
emit DelayBlocksUpdated(delayBlocks, _delayBlocks);
delayBlocks = _delayBlocks;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ contract RootManager_SetMinDisputeBlocks is Base {
vm.prank(owner);

vm.expectEmit(true, true, true, true);
emit MinDisputeBlocksUpdated(newMinDisputeBlocks, _prevMinDisputeBlocks);
emit MinDisputeBlocksUpdated(_prevMinDisputeBlocks, newMinDisputeBlocks);

_rootManager.setMinDisputeBlocks(newMinDisputeBlocks);
}
Expand Down

0 comments on commit a4cea83

Please sign in to comment.