Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kl-factory): fix init and zk test i server #1440

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/tests/ts-integration/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function waitForServer() {
for (let i = 0; i < maxAttempts; ++i) {
try {
await l2Provider.getNetwork(); // Will throw if the server is not ready yet.
const bridgeAddress = (await l2Provider.getDefaultBridgeAddresses()).erc20L2;
const bridgeAddress = (await l2Provider.getDefaultBridgeAddresses()).sharedL2;
const code = await l2Provider.getCode(bridgeAddress);
if (code == '0x') {
throw Error('L2 ERC20 bridge is not deployed yet, server is not ready');
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/zk/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as env from './env';
import * as config from './config';
import * as run from './run';
import * as server from './server';
import { up } from './up';
import { createVolumes, up } from './up';
import { announced } from './utils';

// Checks if all required tools are installed with the correct versions
Expand Down Expand Up @@ -43,6 +43,7 @@ const initSetup = async ({ skipSubmodulesCheckout, skipEnvSetup }: InitSetupOpti
await announced('Pulling images', docker.pull());
await announced('Checking environment', checkEnv());
await announced('Checking git hooks', env.gitHooks());
await announced('Create volumes', createVolumes());
await announced('Setting up containers', up());
}
if (!skipSubmodulesCheckout) {
Expand Down
Loading