Skip to content

Commit 79dccae

Browse files
committed
[Trivial][RPC] Fix spendzerocoin num of arguments
1 parent c9aefbf commit 79dccae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3440,7 +3440,7 @@ UniValue mintzerocoin(const UniValue& params, bool fHelp)
34403440

34413441
UniValue spendzerocoin(const UniValue& params, bool fHelp)
34423442
{
3443-
if (fHelp || params.size() > 3 || params.size() < 1)
3443+
if (fHelp || params.size() > 2 || params.size() < 1)
34443444
throw std::runtime_error(
34453445
"spendzerocoin amount ( \"address\" )\n"
34463446
"\nSpend zPIV to a PIV address.\n" +
@@ -3493,7 +3493,7 @@ UniValue spendzerocoin(const UniValue& params, bool fHelp)
34933493

34943494
UniValue spendzerocoinmints(const UniValue& params, bool fHelp)
34953495
{
3496-
if (fHelp || params.size() < 1 || params.size() > 3)
3496+
if (fHelp || params.size() < 1 || params.size() > 2)
34973497
throw std::runtime_error(
34983498
"spendzerocoinmints mints_list ( \"address\" ) \n"
34993499
"\nSpend zPIV mints to a PIV address.\n" +
@@ -4242,7 +4242,7 @@ UniValue searchdzpiv(const UniValue& params, bool fHelp)
42424242

42434243
UniValue spendrawzerocoin(const UniValue& params, bool fHelp)
42444244
{
4245-
if (fHelp || params.size() < 4 || params.size() > 7)
4245+
if (fHelp || params.size() < 4 || params.size() > 6)
42464246
throw std::runtime_error(
42474247
"spendrawzerocoin \"serialHex\" denom \"randomnessHex\" \"priv key\" ( \"address\" \"mintTxId\" )\n"
42484248
"\nCreate and broadcast a TX spending the provided zericoin.\n"

0 commit comments

Comments
 (0)