Order networks selection based on the selected account id
frol opened this issue · 2 comments
frol commented
Currently, when prompted to select network near
CLI uses the order specified in the config.toml, it would be useful if we could bubble up network configs relevant to the specified account id (e.g. when frol.testnet
is specified, we would move all the "testnet" connections up before mainnet ones).
(^ I wish that 3 last items would be at the beginning of the list)
Note that implicit account ids are not guessable, while named accounts end with .near
suffix on mainnet, and with .testnet
on testnet. NetworkConnection has network_name
that can be used to identify the relevant network connection.
thaodt commented
I'm working on this one.