From ec501703da2e1bf82704a52351670f5543804655 Mon Sep 17 00:00:00 2001 From: Anton Yemelyanov Date: Fri, 15 Sep 2023 23:25:55 +0300 Subject: [PATCH] display kaspa on get-balance-by-address-rpc --- cli/src/modules/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/modules/rpc.rs b/cli/src/modules/rpc.rs index 820a09b46..8e7017ba7 100644 --- a/cli/src/modules/rpc.rs +++ b/cli/src/modules/rpc.rs @@ -148,7 +148,7 @@ impl Rpc { let addresses = argv.iter().map(|s| Address::try_from(s.as_str())).collect::, _>>()?; for address in addresses { let result = rpc.get_balance_by_address_call(GetBalanceByAddressRequest { address }).await?; - self.println(&ctx, result); + self.println(&ctx, sompi_to_kaspa(result.balance)); } } RpcApiOps::GetBalancesByAddresses => {