Commit 04d22e1e authored by refcell.eth's avatar refcell.eth Committed by GitHub

Merge pull request #8352 from ethereum-optimism/ctb/better-setup-check

contracts-bedrock: better setup check
parents a78776a1 22a7bbaa
......@@ -7,5 +7,5 @@ GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 348770
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 42970)
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86629)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68462)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68899)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68911)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 153527)
\ No newline at end of file
......@@ -35,6 +35,7 @@ fs_permissions = [
{ access='read', path='./broadcast/' },
{ access='read', path = './forge-artifacts/' },
{ access='write', path='./semver-lock.json' },
{ access='read-write', path='./.testdata/' },
]
libs = ["node_modules", "lib"]
......
......@@ -134,13 +134,14 @@ contract Setup {
/// @dev Sets up the L2 contracts. Depends on `L1()` being called first.
function L2(DeployConfig cfg) public {
string[] memory args = new string[](3);
args[0] = Executables.bash;
args[1] = "-c";
args[2] = string.concat(vm.projectRoot(), "/scripts/generate-l2-genesis.sh");
vm.ffi(args);
string memory allocsPath = string.concat(vm.projectRoot(), "/.testdata/genesis.json");
if (vm.isFile(allocsPath) == false) {
string[] memory args = new string[](3);
args[0] = Executables.bash;
args[1] = "-c";
args[2] = string.concat(vm.projectRoot(), "/scripts/generate-l2-genesis.sh");
vm.ffi(args);
}
vm.loadAllocs(allocsPath);
// Set the governance token's owner to be the final system owner
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment