From bbb06cafdff91d00468a4f16e8843cca71fad60c Mon Sep 17 00:00:00 2001 From: ilitteri Date: Wed, 31 Jan 2024 17:52:21 -0300 Subject: [PATCH] Initialize pubdataPricingMode correctly --- l1-contracts/src.ts/deploy.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/l1-contracts/src.ts/deploy.ts b/l1-contracts/src.ts/deploy.ts index 1b94b30ff..96c849737 100644 --- a/l1-contracts/src.ts/deploy.ts +++ b/l1-contracts/src.ts/deploy.ts @@ -78,8 +78,11 @@ export class Deployer { const initialProtocolVersion = getNumberFromEnv("CONTRACTS_INITIAL_PROTOCOL_VERSION"); const DiamondInit = new Interface(hardhat.artifacts.readArtifactSync("DiamondInit").abi); + const validiumMode = process.env["VALIDIUM_MODE"] == "true"; + const pubdataPricingMode = validiumMode ? PubdataPricingMode.Validium : PubdataPricingMode.Rollup; + const feeParams = { - pubdataPricingMode: PubdataPricingMode.Rollup, + pubdataPricingMode, batchOverheadL1Gas: SYSTEM_CONFIG.priorityTxBatchOverheadL1Gas, maxPubdataPerBatch: SYSTEM_CONFIG.priorityTxPubdataPerBatch, priorityTxMaxPubdata: SYSTEM_CONFIG.priorityTxMaxPubdata,