near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 91 forks source link

Even when the nodeUrl is changed to a different value, `near` still reports it is accessing testnet #1039

Closed nagisa closed 6 months ago

nagisa commented 1 year ago
#near --nodeUrl https://rpc.mainnet.near.org state chaenomeles.near

Account chaenomeles.near is not found in testnet

Use export NEAR_ENV=mainnet to use mainnet accounts. 

Here, the cli is reporting "not found in testnet" even though the tool is already pointed at mainnet via nodeUrl. This is potentially quite confusing.

gagdiez commented 6 months ago

now the users can correctly select networks using --networkId