From 8dfec2b566834699d214d120d805027a883145d6 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 25 Nov 2022 22:34:58 +0800 Subject: [PATCH] feat: update `getConstants()` --- packages/protocol/contracts/L1/TaikoL1.sol | 6 ++++-- packages/protocol/contracts/L2/V1TaikoL2.sol | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/protocol/contracts/L1/TaikoL1.sol b/packages/protocol/contracts/L1/TaikoL1.sol index 3d3e90b6f18..c28848c07b6 100644 --- a/packages/protocol/contracts/L1/TaikoL1.sol +++ b/packages/protocol/contracts/L1/TaikoL1.sol @@ -253,7 +253,8 @@ contract TaikoL1 is EssentialContract, IHeaderSync, V1Events { uint256, // TAIKO_TX_MIN_GAS_LIMIT uint256, // V1_ANCHOR_TX_GAS_LIMIT bytes4, // V1_ANCHOR_TX_SELECTOR - bytes32 // V1_INVALIDATE_BLOCK_LOG_TOPIC + bytes32, // V1_INVALIDATE_BLOCK_LOG_TOPIC + bool // K_WHITELIST_PROVERS ) { return ( @@ -269,7 +270,8 @@ contract TaikoL1 is EssentialContract, IHeaderSync, V1Events { LibConstants.TAIKO_TX_MIN_GAS_LIMIT, LibConstants.V1_ANCHOR_TX_GAS_LIMIT, LibConstants.V1_ANCHOR_TX_SELECTOR, - LibConstants.V1_INVALIDATE_BLOCK_LOG_TOPIC + LibConstants.V1_INVALIDATE_BLOCK_LOG_TOPIC, + LibConstants.K_WHITELIST_PROVERS ); } } diff --git a/packages/protocol/contracts/L2/V1TaikoL2.sol b/packages/protocol/contracts/L2/V1TaikoL2.sol index b087bd9d013..8cd8befcde2 100644 --- a/packages/protocol/contracts/L2/V1TaikoL2.sol +++ b/packages/protocol/contracts/L2/V1TaikoL2.sol @@ -150,7 +150,8 @@ contract V1TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync { uint256, // TAIKO_TX_MIN_GAS_LIMIT uint256, // V1_ANCHOR_TX_GAS_LIMIT bytes4, // V1_ANCHOR_TX_SELECTOR - bytes32 // V1_INVALIDATE_BLOCK_LOG_TOPIC + bytes32, // V1_INVALIDATE_BLOCK_LOG_TOPIC + bool // K_WHITELIST_PROVERS ) { return ( @@ -166,7 +167,8 @@ contract V1TaikoL2 is AddressResolver, ReentrancyGuard, IHeaderSync { LibConstants.TAIKO_TX_MIN_GAS_LIMIT, LibConstants.V1_ANCHOR_TX_GAS_LIMIT, LibConstants.V1_ANCHOR_TX_SELECTOR, - LibConstants.V1_INVALIDATE_BLOCK_LOG_TOPIC + LibConstants.V1_INVALIDATE_BLOCK_LOG_TOPIC, + LibConstants.K_WHITELIST_PROVERS ); }