Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/contracts-bedrock/test/L1/SystemConfig.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -867,15 +867,17 @@ contract SystemConfig_IsFeatureEnabled_Test is SystemConfig_TestInit {
/// @notice Tests that `isFeatureEnabled` returns false for unset features.
/// @param _feature The feature to check.
function testFuzz_isFeatureEnabled_unsetFeature_succeeds(bytes32 _feature) external {
vm.startPrank(address(systemConfig.proxyAdmin()));
if (_feature == Features.ETH_LOCKBOX && systemConfig.isFeatureEnabled(Features.ETH_LOCKBOX)) {
// Needs to be anything but ETH_LOCKBOX because we can't turn that feature off if it's on.
vm.skip(true);
}

// Normalize CUSTOM_GAS_TOKEN to avoid environment-dependent state
if (systemConfig.isFeatureEnabled(Features.CUSTOM_GAS_TOKEN)) {
vm.prank(address(systemConfig.proxyAdmin()));
systemConfig.setFeature(Features.CUSTOM_GAS_TOKEN, false);
}

vm.stopPrank();

assertFalse(systemConfig.isFeatureEnabled(_feature));
}

Expand Down