Skip to content

Commit

Permalink
fix: type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Mar 18, 2024
1 parent 808c10d commit 1ce2430
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/integration-tests/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ export enum BlockExplorer {
baseUrl = "http://localhost:3010",
localNetwork = "/?network=local",
}
/*

export enum Values {
txSumETH = "0.000009",
}*/
}

const 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, Values } from "../../../constants";
import { Helper } from "../../../helper";

export const depositEth = async function (sum = Values.txSumETH) {
export const depositEth = async function (sum: string = 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 @@ -5,7 +5,10 @@ import { localConfig } from "../../../config";
import { Buffer, Logger, Path, Values, Wallets } from "../../../constants";
import { Helper } from "../../../helper";

export const transferEth = async function (sum = Values.txSumETH, address: string = Wallets.mainWalletPrivateKey) {
export const transferEth = async function (
sum: string = 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 @@ -5,7 +5,7 @@ import { localConfig } from "../../../config";
import { Buffer, Logger, Path, Values } from "../../../constants";
import { Helper } from "../../../helper";

export const withdrawETH = async function (sum = Values.txSumETH) {
export const withdrawETH = async function (sum: string = 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 @@ -5,7 +5,7 @@ import { localConfig } from "../../../config";
import { Buffer, Logger, Path, Values, Wallets } from "../../../constants";
import { Helper } from "../../../helper";

export const withdrawETHtoOtherAddress = async function (sum = Values.txSumETH) {
export const withdrawETHtoOtherAddress = async function (sum: string = 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 1ce2430

Please sign in to comment.