Skip to content

Commit f18f1c8

Browse files
authored
fix(target_chains/ethereum): update some configs to make js tests work (#1399)
1 parent 86c6ed2 commit f18f1c8

File tree

6 files changed

+5
-13
lines changed

6 files changed

+5
-13
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/ethereum/contracts/.env.test

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Migrations Metadata
22
MIGRATIONS_DIR=./migrations/test
33

4-
# By default tests are run against the tilt Wormhole deployment. If you wish to test against
5-
# the read-only Wormhole receiver instead, uncomment the following line:
6-
# MIGRATIONS_DIR=./migrations/prod-receiver
7-
8-
MIGRATIONS_NETWORK=development
9-
104
# Wormhole Core Migrations
115
INIT_SIGNERS=["0xbeFA429d57cD18b7F8A4d91A2da9AB4AF05d0FBe"]
126
INIT_CHAIN_ID=0x2

target_chains/ethereum/contracts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ npx ganache-cli -e 10000 --deterministic --time="1970-01-02T00:00:00+00:00" --ho
4747
2. deploy the contracts:
4848

4949
```bash
50-
cp .env.test .env && npx truffle compile --all && npx truffle migrate
50+
cp .env.test .env && npx truffle compile --all && npx truffle migrate --network development
5151
```
5252

5353
3. Run the test suite:

target_chains/ethereum/contracts/migrations/test/2_deploy_wormhole.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const loadEnv = require("../../scripts/loadEnv");
2-
loadEnv("../../");
1+
require("dotenv").config();
32

43
const Setup = artifacts.require("Setup");
54
const Implementation = artifacts.require("Implementation");

target_chains/ethereum/contracts/migrations/test/3_deploy_pyth.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const loadEnv = require("../../scripts/loadEnv");
2-
loadEnv("../../");
1+
require("dotenv").config();
32

43
const bs58 = require("bs58");
54

target_chains/ethereum/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-evm-contract",
3-
"version": "1.4.0",
3+
"version": "1.4.3",
44
"description": "",
55
"private": "true",
66
"devDependencies": {

0 commit comments

Comments
 (0)