Skip to content

Commit

Permalink
test: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Jan 29, 2024
1 parent 70e04f8 commit 090d0d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions test/src/entities.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -14,5 +13,5 @@ export const contracts = {
};

export const wallet = {
testnetPK: process.env.E2E_TESTNET_PK || "undefined",
testnetPK: process.env.E2E_TESTNET_PK,
};

0 comments on commit 090d0d9

Please sign in to comment.