From fd15851c5507e217967ef1633a185ddf8671a382 Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Thu, 29 Aug 2019 15:12:34 +0800 Subject: [PATCH] Fixes output of `getbalance` (#132) --- RpcWallet/RpcWallet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RpcWallet/RpcWallet.cs b/RpcWallet/RpcWallet.cs index 570e49190..b3b0e6a63 100644 --- a/RpcWallet/RpcWallet.cs +++ b/RpcWallet/RpcWallet.cs @@ -152,7 +152,7 @@ private JObject GetBalance(UInt160 asset_id) { CheckWallet(); JObject json = new JObject(); - json["balance"] = Wallet.GetAvailable(asset_id).ToString(); + json["balance"] = Wallet.GetAvailable(asset_id).Value.ToString(); return json; }