Skip to content

Commit

Permalink
fix: new one
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Mar 12, 2024
1 parent d2c1356 commit 5537474
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/integration-tests/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,9 @@ export enum BlockExplorer {
export enum Values {
txSumETH = "0.000009",
}

/*
const txSumETH = "0.000009";
export const Values = {
txSumETH: txSumETH,
};*/
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { localConfig } from "../../../config";
import { Buffer, Logger, Path } from "../../../constants";
import { Helper } from "../../../helper";

export const depositEth = async function (sum = "0.000009") {
export const depositEth = async function (Values.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 @@ -2,10 +2,10 @@ import * as ethers from "ethers";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { Buffer, Logger, Path, Wallets } from "../../../constants";
import { Buffer, Logger, Path, Values, Wallets } from "../../../constants";
import { Helper } from "../../../helper";

export const transferEth = async function (sum = "0.000009", address: string = Wallets.mainWalletPrivateKey) {
export const transferEth = async function (sum = Values.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 @@ -2,10 +2,10 @@ import * as ethers from "ethers";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { Buffer, Logger, Path } from "../../../constants";
import { Buffer, Logger, Path, Values } from "../../../constants";
import { Helper } from "../../../helper";

export const withdrawETH = async function (sum = "0.000009") {
export const withdrawETH = async function (sum = Values.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 @@ -2,10 +2,10 @@ import * as ethers from "ethers";
import * as zksync from "zksync-web3";

import { localConfig } from "../../../config";
import { Buffer, Logger, Path, Wallets } from "../../../constants";
import { Buffer, Logger, Path, Values, Wallets } from "../../../constants";
import { Helper } from "../../../helper";

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

0 comments on commit 5537474

Please sign in to comment.