Skip to content

Commit

Permalink
fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Nov 3, 2023
1 parent 0cff45d commit aa54e7a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
1 change: 1 addition & 0 deletions core/tests/ts-integration/scripts/compile-yul.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as hre from 'hardhat';
import * as fs from 'fs';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { exec as _exec, spawn as _spawn } from 'child_process';

import { getZksolcUrl, saltFromUrl } from '@matterlabs/hardhat-zksync-solc';
Expand Down
5 changes: 2 additions & 3 deletions core/tests/ts-integration/src/system.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BigNumber, BytesLike } from 'ethers';
import { ethers } from 'ethers';
import { Provider, utils, Contract } from 'zksync-web3';
import { BigNumber, BytesLike, ethers } from 'ethers';
import { Provider, utils } from 'zksync-web3';

const L1_CONTRACTS_FOLDER = `${process.env.ZKSYNC_HOME}/contracts/ethereum/artifacts/cache/solpp-generated-contracts`;
const DIAMOND_UPGRADE_INIT_ABI = new ethers.utils.Interface(
Expand Down
13 changes: 7 additions & 6 deletions infrastructure/zk/src/init.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Command } from 'commander';
import chalk from 'chalk';
import { Command } from 'commander';
import * as utils from './utils';

import * as server from './server';
import * as contract from './contract';
import * as run from './run/run';
import { clean } from './clean';
import * as compiler from './compiler';
import * as contract from './contract';
import * as db from './database';
import { clean } from './clean';
import * as env from './env';
import * as docker from './docker';
import * as env from './env';
import * as run from './run/run';
import * as server from './server';
import { up } from './up';

const entry = chalk.bold.yellow;
Expand All @@ -22,6 +22,7 @@ export async function init(initArgs: InitArgs = DEFAULT_ARGS) {
skipSubmodulesCheckout,
skipEnvSetup,
testTokens,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
deployerL1ContractInputArgs,
governorPrivateKeyArgs,
deployerL2ContractInput
Expand Down
7 changes: 2 additions & 5 deletions infrastructure/zk/src/status.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Command } from 'commander';

import { Pool } from 'pg';
import { ethers } from 'ethers';
import { assert } from 'console';
import { ethers } from 'ethers';
import { Pool } from 'pg';

// Postgress connection pool - must be intialized later - as the ENV variables are set later.
let pool: Pool | null = null;
Expand All @@ -16,10 +16,7 @@ const GETTER_ABI = [
const VERIFIER_ABI = ['function verificationKeyHash() view returns (bytes32)'];

export async function query(text: string, params?: any[]): Promise<any> {
const start = Date.now();

const res = await pool!.query(text, params);
const duration = Date.now() - start;
return res;
}

Expand Down

0 comments on commit aa54e7a

Please sign in to comment.