Skip to content

Commit

Permalink
Merge branch 'feat_validium_pubdata_abstraction' of github.com:lambda…
Browse files Browse the repository at this point in the history
…class/zksync-era into feat_get_batch_pubdata_endpoint
  • Loading branch information
ilitteri committed Jan 30, 2024
2 parents aa7fc16 + dedcf24 commit a9c0b2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions infrastructure/zk/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import * as run from './run/run';
import * as server from './server';
import { up } from './up';

import * as fs from 'fs';

const entry = chalk.bold.yellow;
const announce = chalk.yellow;
const success = chalk.green;
Expand All @@ -27,7 +29,9 @@ export async function init(initArgs: InitArgs = DEFAULT_ARGS) {
validiumMode
} = initArgs;

process.env.VALIDIUM_MODE = validiumMode.toString();
let envFileContent = fs.readFileSync(process.env.ENV_FILE!).toString();
envFileContent += `VALIDIUM_MODE=${validiumMode}\n`;
fs.writeFileSync(process.env.ENV_FILE!, envFileContent);
await announced(`Initializing in ${validiumMode ? 'Validium mode' : 'Roll-up mode'}`);

if (!process.env.CI && !skipEnvSetup) {
Expand Down Expand Up @@ -184,7 +188,7 @@ export const initCommand = new Command('init')
governorPrivateKeyArgs: [],
deployerL2ContractInput: { args: [], includePaymaster: true, includeL2WETH: true },
testTokens: { deploy: true, args: [] },
validiumMode: cmd.validiumMode
validiumMode: cmd.validiumMode !== undefined ? cmd.validiumMode : false
};
await init(initArgs);
});
Expand Down

0 comments on commit a9c0b2a

Please sign in to comment.