Skip to content

Commit 643dd5e

Browse files
committed
fix specs test and ASR snapshot
1 parent 18a0b64 commit 643dd5e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/contracts-bedrock/snapshots/abi/AnchorStateRegistry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"type": "address"
121121
}
122122
],
123-
"name": "isGameBeyondAirgap",
123+
"name": "isGameAirgapped",
124124
"outputs": [
125125
{
126126
"internalType": "bool",

packages/contracts-bedrock/test/universal/Specs.t.sol

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -948,14 +948,14 @@ contract Specification_Test is CommonTest {
948948

949949
/// @notice Ensures that the DeputyGuardian is authorized to take all Guardian actions.
950950
function test_deputyGuardianAuth_works() public view {
951-
// Additional 2 roles for the DeputyPauseModule.
952-
assertEq(specsByRole[Role.GUARDIAN].length, 5);
953-
assertEq(specsByRole[Role.DEPUTYGUARDIAN].length, specsByRole[Role.GUARDIAN].length + 2);
951+
// Additional 2 roles for the DeputyPauseModule
952+
// Additional role for `setAnchorState` which is in DGM but no longer role-restricted.
953+
assertEq(specsByRole[Role.GUARDIAN].length, 4);
954+
assertEq(specsByRole[Role.DEPUTYGUARDIAN].length, specsByRole[Role.GUARDIAN].length + 3);
954955

955956
mapping(bytes4 => Spec) storage dgmFuncSpecs = specs["DeputyGuardianModule"];
956957
mapping(bytes4 => Spec) storage superchainConfigFuncSpecs = specs["SuperchainConfig"];
957958
mapping(bytes4 => Spec) storage portal2FuncSpecs = specs["OptimismPortal2"];
958-
mapping(bytes4 => Spec) storage anchorRegFuncSpecs = specs["AnchorStateRegistry"];
959959

960960
// Ensure that for each of the DeputyGuardianModule's methods there is a corresponding method on another
961961
// system contract authed to the Guardian role.
@@ -972,6 +972,5 @@ contract Specification_Test is CommonTest {
972972
_assertRolesEq(portal2FuncSpecs[_getSel("setRespectedGameType(uint32)")].auth, Role.GUARDIAN);
973973

974974
_assertRolesEq(dgmFuncSpecs[_getSel("setAnchorState(address,address)")].auth, Role.DEPUTYGUARDIAN);
975-
_assertRolesEq(anchorRegFuncSpecs[_getSel("setAnchorState(address)")].auth, Role.GUARDIAN);
976975
}
977976
}

0 commit comments

Comments
 (0)