Make truffle migrations directory configurable

This commit is contained in:
Tom Pointon 2022-03-25 09:51:37 +00:00
parent 148034a4d6
commit 7824587d0f
9 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
# Migrations Metadata
MIGRATIONS_DIR=./migrations/test
MIGRATIONS_NETWORK=development
# Wormhole Core Migrations
INIT_SIGNERS=["0xbeFA429d57cD18b7F8A4d91A2da9AB4AF05d0FBe"]
INIT_CHAIN_ID=0x2

View File

@ -2,6 +2,7 @@ require("dotenv").config({ path: ".env" });
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
migrations_directory: process.env.MIGRATIONS_DIR,
networks: {
development: {
host: "127.0.0.1",