From a2b47503ef53b980988053f04792e97fa9e44cca Mon Sep 17 00:00:00 2001 From: David Date: Wed, 8 May 2024 22:19:00 +0800 Subject: [PATCH] feat(protocol): make `NUM_MIN_MINORITY_GUARDIANS` and `NUM_MIN_MAJORITY_GUARDIANS` configurable in `DeployOnL1` script --- packages/protocol/script/DeployOnL1.s.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/protocol/script/DeployOnL1.s.sol b/packages/protocol/script/DeployOnL1.s.sol index 751379e463..f2367b905a 100644 --- a/packages/protocol/script/DeployOnL1.s.sol +++ b/packages/protocol/script/DeployOnL1.s.sol @@ -34,8 +34,8 @@ import { P256Verifier } from "p256-verifier/src/P256Verifier.sol"; /// @notice This script deploys the core Taiko protocol smart contract on L1, /// initializing the rollup. contract DeployOnL1 is DeployCapability { - uint256 public constant NUM_MIN_MAJORITY_GUARDIANS = 7; - uint256 public constant NUM_MIN_MINORITY_GUARDIANS = 2; + uint256 public constant NUM_MIN_MAJORITY_GUARDIANS = vm.envUint("NUM_MIN_MAJORITY_GUARDIANS"); + uint256 public constant NUM_MIN_MINORITY_GUARDIANS = vm.envUint("NUM_MIN_MINORITY_GUARDIANS"); address public constant MAINNET_CONTRACT_OWNER = 0x9CBeE534B5D8a6280e01a14844Ee8aF350399C7F; // admin.taiko.eth