Skip to content

Commit 27844ce

Browse files
chore(protocol): make NUM_MIN_MINORITY_GUARDIANS and NUM_MIN_MAJORITY_GUARDIANS configurable in DeployOnL1 script (#17050)
Co-authored-by: D <[email protected]> Co-authored-by: davidtaikocha <[email protected]>
1 parent f888e25 commit 27844ce

File tree

3 files changed

+7495
-9466
lines changed

3 files changed

+7495
-9466
lines changed

packages/protocol/script/DeployOnL1.s.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import { P256Verifier } from "p256-verifier/src/P256Verifier.sol";
3434
/// @notice This script deploys the core Taiko protocol smart contract on L1,
3535
/// initializing the rollup.
3636
contract DeployOnL1 is DeployCapability {
37-
uint256 public constant NUM_MIN_MAJORITY_GUARDIANS = 7;
38-
uint256 public constant NUM_MIN_MINORITY_GUARDIANS = 2;
37+
uint256 public NUM_MIN_MAJORITY_GUARDIANS = vm.envUint("NUM_MIN_MAJORITY_GUARDIANS");
38+
uint256 public NUM_MIN_MINORITY_GUARDIANS = vm.envUint("NUM_MIN_MINORITY_GUARDIANS");
3939

4040
address public constant MAINNET_CONTRACT_OWNER = 0x9CBeE534B5D8a6280e01a14844Ee8aF350399C7F; // admin.taiko.eth
4141

packages/protocol/script/test_deploy_on_l1.sh

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ SHARED_ADDRESS_MANAGER=0x0000000000000000000000000000000000000000 \
1818
L2_GENESIS_HASH=0xee1950562d42f0da28bd4550d88886bc90894c77c9c9eaefef775d4c8223f259 \
1919
PAUSE_TAIKO_L1=true \
2020
PAUSE_BRIDGE=true \
21+
NUM_MIN_MAJORITY_GUARDIANS=7 \
22+
NUM_MIN_MINORITY_GUARDIANS=2 \
2123
TIER_PROVIDER="devnet" \
2224
forge script script/DeployOnL1.s.sol:DeployOnL1 \
2325
--fork-url http://localhost:8545 \

0 commit comments

Comments
 (0)