From 4155db0325525dc5f376a1be13ac6ec66561f2b5 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Tue, 28 Jan 2020 11:11:43 -0300 Subject: [PATCH] change argument name --- src/wallet/rpcwallet.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 3cc6709b5..dd57a8e22 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -604,7 +604,7 @@ UniValue getreceivedbyaddress(const UniValue& params, bool fHelp) "\nArguments:\n" "1. \"zcashaddress\" (string, required) The Zcash address for transactions.\n" "2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n" - "3. inzatoshi (bool, optional, default=false) Get the result amount as an integer.\n" + "3. inZat (bool, optional, default=false) Get the result amount as an integer.\n" "\nResult:\n" "amount (numeric) The total amount in " + CURRENCY_UNIT + " received at this address.\n" "\nExamples:\n" @@ -648,8 +648,10 @@ UniValue getreceivedbyaddress(const UniValue& params, bool fHelp) if (wtx.GetDepthInMainChain() >= nMinDepth) nAmount += txout.nValue; } - if(params.size() > 2) - if(params[2].get_bool()) + + // inZat + if (params.size() > 2) + if (params[2].get_bool()) return nAmount; return ValueFromAmount(nAmount);