Skip to content

Commit

Permalink
Remove USE_FAULT_PROOFS_SLOT usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed Apr 22, 2024
1 parent 45a56db commit 1288f70
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions rvsol/scripts/Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Artifacts } from "scripts/Artifacts.s.sol";
import { Config } from "scripts/Config.sol";

import { DeployConfig } from "@optimism/scripts/DeployConfig.s.sol";
import { USE_FAULT_PROOFS_SLOT } from "@optimism/scripts/DeployConfig.s.sol";

/// @title Deployer
/// @author tynes
Expand All @@ -19,18 +18,10 @@ abstract contract Deployer is Script, Artifacts {
function setUp() public virtual override {
Artifacts.setUp();

// Load the `useFaultProofs` slot value prior to etching the DeployConfig's bytecode and reading the deploy
// config file. If this slot has already been set, it will override the preference in the deploy config.
bytes32 useFaultProofsOverride = vm.load(address(cfg), USE_FAULT_PROOFS_SLOT);

vm.etch(address(cfg), vm.getDeployedCode("DeployConfig.s.sol:DeployConfig"));
vm.label(address(cfg), "DeployConfig");
vm.allowCheatcodes(address(cfg));
cfg.read(Config.deployConfigPath());

if (useFaultProofsOverride != 0) {
vm.store(address(cfg), USE_FAULT_PROOFS_SLOT, useFaultProofsOverride);
}
}

/// @notice Returns the name of the deployment script. Children contracts
Expand Down

0 comments on commit 1288f70

Please sign in to comment.