Skip to content

Commit d217634

Browse files
authored
feat: add ProtocolVersions to restrictions (#17651)
* feat: add ProtocolVersions to restrictions * chore: snapshots
1 parent ac04854 commit d217634

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/contracts-bedrock/foundry.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ compilation_restrictions = [
2828
{ paths = "src/dispute/v2/PermissionedDisputeGameV2.sol", optimizer_runs = 5000 },
2929
{ paths = "src/L1/OPContractsManager.sol", optimizer_runs = 5000 },
3030
{ paths = "src/L1/OPContractsManagerStandardValidator.sol", optimizer_runs = 5000 },
31-
{ paths = "src/L1/OptimismPortal2.sol", optimizer_runs = 5000 }
31+
{ paths = "src/L1/OptimismPortal2.sol", optimizer_runs = 5000 },
32+
{ paths = "src/L1/ProtocolVersions.sol", optimizer_runs = 5000 }
3233
]
3334

3435
extra_output = ['devdoc', 'userdoc', 'metadata', 'storageLayout']
@@ -146,6 +147,7 @@ compilation_restrictions = [
146147
{ paths = "src/L1/OPContractsManager.sol", optimizer_runs = 0 },
147148
{ paths = "src/L1/OPContractsManagerStandardValidator.sol", optimizer_runs = 0 },
148149
{ paths = "src/L1/OptimismPortal2.sol", optimizer_runs = 0 },
150+
{ paths = "src/L1/ProtocolVersions.sol", optimizer_runs = 0 },
149151
]
150152

151153
################################################################

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"sourceCodeHash": "0x1cc641a4272aea85e13cbf42d9032d1b91ef858eafe3be6b5649cc8504c9cf69"
3737
},
3838
"src/L1/ProtocolVersions.sol:ProtocolVersions": {
39-
"initCodeHash": "0x5a76c8530cb24cf23d3baacc6eefaac226382af13f1e2a35535d2ec2b0573b29",
40-
"sourceCodeHash": "0xb3e32b18c95d4940980333e1e99b4dcf42d8a8bfce78139db4dc3fb06e9349d0"
39+
"initCodeHash": "0xcb59ad9a5ec2a0831b7f4daa74bdacba82ffa03035dafb499a732c641e017f4e",
40+
"sourceCodeHash": "0x3b7b7a1023e6e87ce4680eee3cc4eebefc15b5ec80db3d39e824fbdd521762db"
4141
},
4242
"src/L1/SuperchainConfig.sol:SuperchainConfig": {
4343
"initCodeHash": "0xfb8c98028f1a0e70bb1afbbc532035ea71b0724883554eeaae62e1910a6c1cd9",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ contract ProtocolVersions is OwnableUpgradeable, ISemver {
4141
event ConfigUpdate(uint256 indexed version, UpdateType indexed updateType, bytes data);
4242

4343
/// @notice Semantic version.
44-
/// @custom:semver 1.1.0
45-
string public constant version = "1.1.0";
44+
/// @custom:semver 1.1.1
45+
string public constant version = "1.1.1";
4646

4747
/// @notice Constructs the ProtocolVersion contract.
4848
constructor() {

0 commit comments

Comments
 (0)