Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Added the ability to optionally set the keyPath and networkId for loc…
Browse files Browse the repository at this point in the history
…alnet (#885)

* Added the ability to optional set the keyPath and networkId for localnet
  • Loading branch information
BenKurrek authored Nov 24, 2021
1 parent 7dd821c commit 1763e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function getConfig(env) {
case 'local':
case 'localnet':
return {
networkId: 'local',
networkId: process.env.NEAR_CLI_LOCALNET_NETWORK_ID || 'local',
nodeUrl: process.env.NEAR_NODE_URL || 'http://localhost:3030',
keyPath: `${process.env.HOME}/.near/validator_key.json`,
keyPath: process.env.NEAR_CLI_LOCALNET_KEY_PATH || `${process.env.HOME}/.near/validator_key.json`,
walletUrl: process.env.NEAR_WALLET_URL || 'http://localhost:4000/wallet',
contractName: CONTRACT_NAME,
helperUrl: process.env.NEAR_HELPER_URL || 'http://localhost:3000',
Expand Down

0 comments on commit 1763e39

Please sign in to comment.