Skip to content

Commit

Permalink
Bump to latest again
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Dec 3, 2024
1 parent 1fb0ef1 commit b54b38b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/nitro-validator
6 changes: 3 additions & 3 deletions script/DeploySystem.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {DeployChain} from "src/DeployChain.sol";
import {Constants} from "@eth-optimism-bedrock/src/libraries/Constants.sol";
import {ResourceMetering} from "@eth-optimism-bedrock/src/L1/ResourceMetering.sol";
import {IResourceMetering} from "@eth-optimism-bedrock/src/L1/interfaces/IResourceMetering.sol";
import {CertManager} from "@nitro-validator/CertManager.sol";
import {ICertManager} from "@nitro-validator/ICertManager.sol";

import {console2 as console} from "forge-std/console2.sol";

Expand Down Expand Up @@ -133,7 +133,7 @@ contract DeploySystem is Deploy {

uint256 timestamp = vm.getBlockTimestamp();
vm.warp(1732580000);
CertManager(certManagerAddress).verifyCert(cert, false, keccak256(parent));
ICertManager(certManagerAddress).verifyCert(cert, false, keccak256(parent));
vm.warp(timestamp);
}

Expand All @@ -157,7 +157,7 @@ contract DeploySystem is Deploy {

function deploySystemConfigGlobal() public broadcast returns (address addr_) {
console.log("Deploying SystemConfigGlobal implementation");
addr_ = address(new SystemConfigGlobal{salt: _implSalt()}(CertManager(mustGetAddress("CertManager"))));
addr_ = address(new SystemConfigGlobal{salt: _implSalt()}(ICertManager(mustGetAddress("CertManager"))));
save("SystemConfigGlobal", addr_);
console.log("SystemConfigGlobal deployed at %s", addr_);
}
Expand Down
4 changes: 2 additions & 2 deletions src/SystemConfigGlobal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Own
import {ISemver} from "@eth-optimism-bedrock/src/universal/interfaces/ISemver.sol";
import {NitroValidator} from "@nitro-validator/NitroValidator.sol";
import {CborDecode} from "@nitro-validator/CborDecode.sol";
import {CertManager} from "@nitro-validator/CertManager.sol";
import {ICertManager} from "@nitro-validator/ICertManager.sol";

contract SystemConfigGlobal is OwnableUpgradeable, ISemver, NitroValidator {
using CborDecode for bytes;
Expand All @@ -28,7 +28,7 @@ contract SystemConfigGlobal is OwnableUpgradeable, ISemver, NitroValidator {
return "0.0.1";
}

constructor(CertManager certManager) NitroValidator(certManager) {
constructor(ICertManager certManager) NitroValidator(certManager) {
initialize({_owner: address(0xdEaD)});
}

Expand Down
1 change: 1 addition & 0 deletions test/SystemConfigGlobal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity ^0.8.15;

import {Test, console} from "forge-std/Test.sol";
import {CertManager} from "@nitro-validator/CertManager.sol";

import "../src/SystemConfigGlobal.sol";

Expand Down

0 comments on commit b54b38b

Please sign in to comment.