diff --git a/config.js b/config.js index 6f49f8c5..4073b114 100644 --- a/config.js +++ b/config.js @@ -1,4 +1,8 @@ -const DEFAULT_NETWORK = process.env.NEAR_ENV || process.env.NEAR_NETWORK || 'testnet'; +const DEFAULT_NETWORK = process.env.NEAR_NETWORK || process.env.NEAR_ENV || 'testnet'; + +if (process.env.NEAR_NETWORK && process.env.NEAR_ENV){ + console.log(`Warning: NEAR_NETWORK and NEAR_ENV are both set! We will use NEAR_NETWORK (${process.env.NEAR_NETWORK})\n`); +} function getConfig(env) { let config; diff --git a/package.json b/package.json index cf914bba..d5fb9b32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-cli", - "version": "4.0.9", + "version": "4.0.10", "description": "Simple CLI for interacting with NEAR Protocol", "engines": { "node": ">= 16"