Skip to content

Commit

Permalink
fix: add updateWhitelistChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi committed Sep 19, 2024
1 parent 4a9caa2 commit 2d626dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/deterministic/DeployScroll.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1229,10 +1229,16 @@ contract DeployScroll is DeterministicDeployment {
}

// note: since we are using L1MessageQueueWithGasPriceOracle,
// and we don't have a L2GasPriceOracle deploy, so we skip it.
// and we don't have a L2GasPriceOracle deploy, so we skip the initializeV2.
// instead, we updateWhitelistChecker
// if (getInitializeCount(L1_MESSAGE_QUEUE_PROXY_ADDR) < 2) {
// L1MessageQueueWithGasPriceOracle(L1_MESSAGE_QUEUE_PROXY_ADDR).initializeV2();
// }
if (L1MessageQueueWithGasPriceOracle(L1_MESSAGE_QUEUE_PROXY_ADDR).whitelistChecker() != L1_WHITELIST_ADDR) {
L1MessageQueueWithGasPriceOracle(L1_MESSAGE_QUEUE_PROXY_ADDR).updateWhitelistChecker(
notnull(L1_WHITELIST_ADDR)
);
}

if (getInitializeCount(L1_MESSAGE_QUEUE_PROXY_ADDR) < 3) {
L1MessageQueueWithGasPriceOracle(L1_MESSAGE_QUEUE_PROXY_ADDR).initializeV3();
Expand Down

0 comments on commit 2d626dc

Please sign in to comment.