diff --git a/package-lock.json b/package-lock.json index 9774e46e..58e93f3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/target_chains/ethereum/contracts/.env.test b/target_chains/ethereum/contracts/.env.test index 1c83770a..7df273af 100644 --- a/target_chains/ethereum/contracts/.env.test +++ b/target_chains/ethereum/contracts/.env.test @@ -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 diff --git a/target_chains/ethereum/contracts/README.md b/target_chains/ethereum/contracts/README.md index aadbff42..0e6a046b 100644 --- a/target_chains/ethereum/contracts/README.md +++ b/target_chains/ethereum/contracts/README.md @@ -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: diff --git a/target_chains/ethereum/contracts/migrations/test/2_deploy_wormhole.js b/target_chains/ethereum/contracts/migrations/test/2_deploy_wormhole.js index a17cf64b..dd5c472e 100644 --- a/target_chains/ethereum/contracts/migrations/test/2_deploy_wormhole.js +++ b/target_chains/ethereum/contracts/migrations/test/2_deploy_wormhole.js @@ -1,5 +1,4 @@ -const loadEnv = require("../../scripts/loadEnv"); -loadEnv("../../"); +require("dotenv").config(); const Setup = artifacts.require("Setup"); const Implementation = artifacts.require("Implementation"); diff --git a/target_chains/ethereum/contracts/migrations/test/3_deploy_pyth.js b/target_chains/ethereum/contracts/migrations/test/3_deploy_pyth.js index 7de88adb..b1901728 100644 --- a/target_chains/ethereum/contracts/migrations/test/3_deploy_pyth.js +++ b/target_chains/ethereum/contracts/migrations/test/3_deploy_pyth.js @@ -1,5 +1,4 @@ -const loadEnv = require("../../scripts/loadEnv"); -loadEnv("../../"); +require("dotenv").config(); const bs58 = require("bs58"); diff --git a/target_chains/ethereum/contracts/package.json b/target_chains/ethereum/contracts/package.json index 77dab7a1..637600b6 100644 --- a/target_chains/ethereum/contracts/package.json +++ b/target_chains/ethereum/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/pyth-evm-contract", - "version": "1.4.0", + "version": "1.4.3", "description": "", "private": "true", "devDependencies": {