Skip to content

Commit

Permalink
fix: new version
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Feb 29, 2024
1 parent cdab5f2 commit 018cc99
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 2 additions & 0 deletions packages/integration-tests/src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ export enum BlockExplorer {
export enum CustomValue {
txSumEth = "0.000009",
}

export const txSumEth: string = CustomValue.txSumEth;
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import * as ethers from "ethers";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { CustomValue, Logger } from "../../../entities";
import { CustomValue, Logger, txSumEth } from "../../../entities";
import { Helper } from "../../../helper";

export const depositEth = async function (sum = CustomValue.txSumEth.toString()) {
export const depositEth = async function (sum = txSumEth) {
const helper = new Helper();
const syncProvider = new zksync.Provider(localConfig.L2Network);
const ethProvider = ethers.getDefaultProvider(localConfig.L1Network);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import { promises as fs } from "fs";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { Buffer, CustomValue, Logger, Wallets } from "../../../entities";
import { Buffer, CustomValue, Logger, txSumEth, Wallets } from "../../../entities";
import { Helper } from "../../../helper";

export const transferEth = async function (
sum = CustomValue.txSumEth.toString(),
address: string = Wallets.mainWalletPrivateKey
) {
export const transferEth = async function (sum = txSumEth, address: string = Wallets.mainWalletPrivateKey) {
const helper = new Helper();
const syncProvider = new zksync.Provider(localConfig.L2Network);
const ethProvider = ethers.getDefaultProvider(localConfig.L1Network);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { promises as fs } from "fs";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { Buffer, CustomValue, Logger } from "../../../entities";
import { Buffer, CustomValue, Logger, txSumEth } from "../../../entities";
import { Helper } from "../../../helper";

export const withdrawETH = async function (sum = CustomValue.txSumEth.toString()) {
export const withdrawETH = async function (sum = txSumEth) {
const helper = new Helper();
const syncProvider = new zksync.Provider(localConfig.L2Network);
const ethProvider = ethers.getDefaultProvider(localConfig.L1Network);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { promises as fs } from "fs";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { Buffer, CustomValue, Logger, Wallets } from "../../../entities";
import { Buffer, CustomValue, Logger, txSumEth, Wallets } from "../../../entities";
import { Helper } from "../../../helper";

export const withdrawETHtoOtherAddress = async function (sum = CustomValue.txSumEth) {
export const withdrawETHtoOtherAddress = async function (sum = txSumEth) {
const helper = new Helper();
const syncProvider = new zksync.Provider(localConfig.L2Network);
const ethProvider = ethers.getDefaultProvider(localConfig.L1Network);
Expand Down

0 comments on commit 018cc99

Please sign in to comment.