Skip to content

Commit 7e520b7

Browse files
committed
more fixes
1 parent d8e3292 commit 7e520b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/contracts-bedrock/src/dispute/FaultDisputeGame.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ contract FaultDisputeGame is Clone, ISemver {
295295
if (initialized) revert AlreadyInitialized();
296296

297297
// Grab the latest anchor root.
298-
(Hash root, uint256 rootBlockNumber) = ANCHOR_STATE_REGISTRY.anchors(GAME_TYPE);
298+
(Hash root, uint256 rootBlockNumber) = ANCHOR_STATE_REGISTRY.getAnchorRoot();
299299

300300
// Should only happen if this is a new game type that hasn't been set up yet.
301301
if (root.raw() == bytes32(0)) revert AnchorRootNotFound();

packages/contracts-bedrock/test/dispute/FaultDisputeGame.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
21942194
gameProxy.resolve();
21952195

21962196
// Don't wait the finalization delay
2197-
vm.expectRevert(abi.encodeWithSelector(GameNotFinalized.selector, "game not beyond airgap period"));
2197+
vm.expectRevert(GameNotFinalized.selector);
21982198
gameProxy.closeGame();
21992199
}
22002200

0 commit comments

Comments
 (0)