From 5897591c6ac6e3ec41f559e265837ff480fc7c65 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Sat, 7 May 2022 11:51:59 +0800 Subject: [PATCH] helperUrl config from env --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index ae979682..7643a90f 100644 --- a/config.js +++ b/config.js @@ -12,7 +12,7 @@ function getConfig(env) { nodeUrl: process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL || 'https://rpc.mainnet.near.org', contractName: CONTRACT_NAME, walletUrl: 'https://wallet.near.org', - helperUrl: 'https://helper.mainnet.near.org', + helperUrl: process.env.NEAR_CLI_MAINNET_HELPER_URL || 'https://helper.mainnet.near.org', helperAccount: 'near', explorerUrl: 'https://explorer.mainnet.near.org', }; @@ -24,7 +24,7 @@ function getConfig(env) { nodeUrl: process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL || 'https://rpc.testnet.near.org', contractName: CONTRACT_NAME, walletUrl: 'https://wallet.testnet.near.org', - helperUrl: 'https://helper.testnet.near.org', + helperUrl: process.env.NEAR_CLI_TESTNET_HELPER_URL || 'https://helper.testnet.near.org', helperAccount: 'testnet', explorerUrl: 'https://explorer.testnet.near.org', };