@@ -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