From a298823ec710cadbe22c9451318de85d1f3fd5f1 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Thu, 9 Mar 2023 15:35:53 -0800 Subject: [PATCH] fix(cli): query AGORIC_NET for wallet show cmd --- packages/agoric-cli/src/commands/wallet.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/agoric-cli/src/commands/wallet.js b/packages/agoric-cli/src/commands/wallet.js index 715b06c661f..673b1953270 100644 --- a/packages/agoric-cli/src/commands/wallet.js +++ b/packages/agoric-cli/src/commands/wallet.js @@ -155,9 +155,20 @@ export const makeWalletCommand = async () => { } catch (e) { console.error('CAUGHT HERE', e); } - execFileSync('agd', [`query`, 'bank', 'balances', opts.from], { - stdio: 'inherit', - }); + execFileSync( + 'agd', + [ + 'query', + '--node', + networkConfig.rpcAddrs[0], + 'bank', + 'balances', + opts.from, + ], + { + stdio: 'inherit', + }, + ); }); wallet