Skip to content

Commit 2841f11

Browse files
fix: simplified code for SystemConfig code (#17539)
1 parent 47e9597 commit 2841f11

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/contracts-bedrock/snapshots/semver-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"sourceCodeHash": "0xbf344c4369b8cb00ec7a3108f72795747f3bc59ab5b37ac18cf21e72e2979dbf"
4545
},
4646
"src/L1/SystemConfig.sol:SystemConfig": {
47-
"initCodeHash": "0x43b5fc9ca19b5f34623b7b6cc5d71f56153fe4b8f1930cad9d946d2471b2395c",
48-
"sourceCodeHash": "0xa82f3f62be32f9f9988b2b44d740c8cbeec3f7623c29c4b7401d0f257e58279e"
47+
"initCodeHash": "0x61d7234395adb2c91bd6714b2c5616bb5d5e5ba74e36b1a95d9f3e959eb41e50",
48+
"sourceCodeHash": "0x53300cd4e69d0f6068fc47b8dc1ffcb566cb957eba9409226ee51e1b96c0afe3"
4949
},
5050
"src/L2/BaseFeeVault.sol:BaseFeeVault": {
5151
"initCodeHash": "0x9b664e3d84ad510091337b4aacaa494b142512e2f6f7fbcdb6210ed62ca9b885",

packages/contracts-bedrock/src/L1/SystemConfig.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ contract SystemConfig is ProxyAdminOwnedBase, OwnableUpgradeable, Reinitializabl
161161
error SystemConfig_InvalidFeatureState();
162162

163163
/// @notice Semantic version.
164-
/// @custom:semver 3.8.0
164+
/// @custom:semver 3.9.0
165165
function version() public pure virtual returns (string memory) {
166-
return "3.8.0";
166+
return "3.9.0";
167167
}
168168

169169
/// @notice Constructs the SystemConfig contract.
@@ -507,7 +507,7 @@ contract SystemConfig is ProxyAdminOwnedBase, OwnableUpgradeable, Reinitializabl
507507

508508
// As a sanity check, prevent users from enabling the feature if already enabled or
509509
// disabling the feature if already disabled. This helps to prevent accidental misuse.
510-
if ((_enabled && isFeatureEnabled[_feature]) || (!_enabled && !isFeatureEnabled[_feature])) {
510+
if (_enabled == isFeatureEnabled[_feature]) {
511511
revert SystemConfig_InvalidFeatureState();
512512
}
513513

0 commit comments

Comments
 (0)