From 4ebf04ee2510f0a41762aa124524373acd0ed32e Mon Sep 17 00:00:00 2001 From: James Campbell Date: Thu, 12 Oct 2023 12:15:05 +0200 Subject: [PATCH] fix(mas): update environment variable name --- .env.example | 2 ++ .env.production | 2 +- .env.test | 2 +- README.md | 2 +- src/threshold-ts/mas/index.ts | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index c2c7bf583..2884373db 100644 --- a/.env.example +++ b/.env.example @@ -18,3 +18,5 @@ REACT_APP_ELECTRUM_PORT=$ELECTRUM_PORT REACT_APP_MOCK_BITCOIN_CLIENT=true REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID + +REACT_APP_TACO_DOMAIN=dashboard diff --git a/.env.production b/.env.production index b6e2a7744..5aee90828 100644 --- a/.env.production +++ b/.env.production @@ -19,4 +19,4 @@ REACT_APP_ELECTRUM_PORT=$ELECTRUM_PORT REACT_APP_MOCK_BITCOIN_CLIENT=false REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID -REACT_APP_TACO_NETWORK=mainnet \ No newline at end of file +REACT_APP_TACO_DOMAIN=mainnet \ No newline at end of file diff --git a/.env.test b/.env.test index e8102abb0..d43a646da 100644 --- a/.env.test +++ b/.env.test @@ -1,3 +1,3 @@ REACT_APP_SUPPORTED_CHAIN_ID=1337 REACT_APP_MULTICALL_ADDRESS=0x086813525A7dC7dafFf015Cdf03896Fd276eab60 -REACT_APP_TACO_NETWORK=dashboard \ No newline at end of file +REACT_APP_TACO_DOMAIN=dashboard \ No newline at end of file diff --git a/README.md b/README.md index c5f2fdbb8..4d97d8f24 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ REACT_APP_MOCK_BITCOIN_CLIENT=false REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID -REACT_APP_TACO_NETWORK=dashboard +REACT_APP_TACO_DOMAIN=dashboard ``` Then build the docker container and run the dashboard: diff --git a/src/threshold-ts/mas/index.ts b/src/threshold-ts/mas/index.ts index 6fa4ca5cc..941f14ec5 100644 --- a/src/threshold-ts/mas/index.ts +++ b/src/threshold-ts/mas/index.ts @@ -1,7 +1,7 @@ import RandomBeacon from "@keep-network/random-beacon/artifacts/RandomBeacon.json" import WalletRegistry from "@keep-network/ecdsa/artifacts/WalletRegistry.json" -const chainName = process.env.REACT_APP_TACO_NETWORK || "" // Ensure it's a string +const chainName = process.env.REACT_APP_TACO_DOMAIN || "" // Ensure it's a string const TacoRegistryFile: any = require(`@nucypher/nucypher-contracts/deployment/artifacts/${chainName}.json`) import {