fix(target_chains/ethereum): update some configs to make js tests work (#1399)

This commit is contained in:
Ali Behjati 2024-03-27 14:56:27 +01:00 committed by GitHub
parent 86c6ed259d
commit f18f1c8e7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 5 additions and 13 deletions

2
package-lock.json generated
View File

@ -58316,7 +58316,7 @@
},
"target_chains/ethereum/contracts": {
"name": "@pythnetwork/pyth-evm-contract",
"version": "1.4.0",
"version": "1.4.3",
"license": "Apache-2.0",
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.22",

View File

@ -1,12 +1,6 @@
# Migrations Metadata
MIGRATIONS_DIR=./migrations/test
# By default tests are run against the tilt Wormhole deployment. If you wish to test against
# the read-only Wormhole receiver instead, uncomment the following line:
# MIGRATIONS_DIR=./migrations/prod-receiver
MIGRATIONS_NETWORK=development
# Wormhole Core Migrations
INIT_SIGNERS=["0xbeFA429d57cD18b7F8A4d91A2da9AB4AF05d0FBe"]
INIT_CHAIN_ID=0x2

View File

@ -47,7 +47,7 @@ npx ganache-cli -e 10000 --deterministic --time="1970-01-02T00:00:00+00:00" --ho
2. deploy the contracts:
```bash
cp .env.test .env && npx truffle compile --all && npx truffle migrate
cp .env.test .env && npx truffle compile --all && npx truffle migrate --network development
```
3. Run the test suite:

View File

@ -1,5 +1,4 @@
const loadEnv = require("../../scripts/loadEnv");
loadEnv("../../");
require("dotenv").config();
const Setup = artifacts.require("Setup");
const Implementation = artifacts.require("Implementation");

View File

@ -1,5 +1,4 @@
const loadEnv = require("../../scripts/loadEnv");
loadEnv("../../");
require("dotenv").config();
const bs58 = require("bs58");

View File

@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-evm-contract",
"version": "1.4.0",
"version": "1.4.3",
"description": "",
"private": "true",
"devDependencies": {