Skip to content

Commit

Permalink
Initialize pubdataPricingMode correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Jan 31, 2024
1 parent 48ff565 commit bbb06ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l1-contracts/src.ts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bbb06ca

Please sign in to comment.