handshake-org/hs-client

hsw-cli should (?) filter environment variables for wallet-*

pinheadmz opened this issue · 0 comments

To reproduce:

start hsd with custom ports:
$ hsd --network=regtest --memory=true --http-port=10000 --wallet-http-port=20000

set environment variables:

$ export HSD_HTTP_PORT=10000
$ export HSD_WALLET_HTTP_PORT=20000

make client calls:

$ hsd-cli info                       # success
$ hsw-cli wallets                    # fails, gets redirected to NODE HTTP PORT (10000)
# hsw-cli wallets --http-port=20000  # success

so, hsw-cli might want to filter environment variablels to correctly parse WALLET_HTTP_PORT