Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,10 @@ contract DeployImplementations is Script {
uint256 mipsVersion = _dii.mipsVersion();
IPreimageOracle preimageOracle = IPreimageOracle(address(_dio.preimageOracleSingleton()));

// We want to ensure that the OPCM for upgrade 13 is deployed with Mips32 on production networks.
if (mipsVersion != 1) {
// We want to ensure that the OPCM for upgrade 14 is deployed with Mips64 on production networks.
if (mipsVersion != 2) {
if (block.chainid == Chains.Mainnet || block.chainid == Chains.Sepolia) {
revert("DeployImplementations: Only Mips32 should be deployed on Mainnet or Sepolia");
revert("DeployImplementations: Only Mips64 should be deployed on Mainnet or Sepolia");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,14 @@ contract DeployImplementations_Test is Test {

function test_run_deployMipsV1OnMainnetOrSepolia_reverts() public {
setDefaults();
dii.set(dii.mipsVersion.selector, 2);
dii.set(dii.mipsVersion.selector, 1);

vm.chainId(Chains.Mainnet);
vm.expectRevert("DeployImplementations: Only Mips32 should be deployed on Mainnet or Sepolia");
vm.expectRevert("DeployImplementations: Only Mips64 should be deployed on Mainnet or Sepolia");
deployImplementations.run(dii, dio);

vm.chainId(Chains.Sepolia);
vm.expectRevert("DeployImplementations: Only Mips32 should be deployed on Mainnet or Sepolia");
vm.expectRevert("DeployImplementations: Only Mips64 should be deployed on Mainnet or Sepolia");
deployImplementations.run(dii, dio);
}
}
Expand Down