From 090d0d9124092a3edb1cf7490025bc919f0697d6 Mon Sep 17 00:00:00 2001 From: pcheremu Date: Mon, 29 Jan 2024 18:06:28 +0100 Subject: [PATCH] test: refactoring --- README.md | 2 +- test/src/entities.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e6899546..e6ff3897 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ To run CLI tests for zksync-cli do the following: 1. Go to [test](`./test`) folder 2. Run `npm i` and install zksync-cli `npm i zksync-cli` 3. Make sure you have [Docker](https://docs.docker.com/engine/install/) on your system. -4. Make sure you have `.env` file with your wallet private key in `./tests/src/` dir. Key is `E2E_TESTNET_PK`. It may looks like `E2E_TESTNET_PK=012345...abcdef` +4. Make sure you have `.env` file with your wallet private key in `./test/src/` dir. Key is `E2E_TESTNET_PK`. It may looks like `E2E_TESTNET_PK=012345...abcdef` 5. Run `npm test` ## 🌍 Official Links diff --git a/test/src/entities.ts b/test/src/entities.ts index ad6b2fca..63e6e559 100644 --- a/test/src/entities.ts +++ b/test/src/entities.ts @@ -1,7 +1,6 @@ import * as dotenv from "dotenv"; -// import * as path from 'path'; -dotenv.config(); // { path: path.resolve(__dirname, ".env") } +dotenv.config(); export const adresses = { sepoliaTestnet: "0x52B6d10d7d865B3d4103f8809AA3521288568f46", @@ -14,5 +13,5 @@ export const contracts = { }; export const wallet = { - testnetPK: process.env.E2E_TESTNET_PK || "undefined", + testnetPK: process.env.E2E_TESTNET_PK, };