corrected rpc param size check

This commit is contained in:
dimxy
2019-01-27 17:17:27 +05:00
parent fdcc9d71c2
commit daf34e2315

View File

@@ -7388,7 +7388,7 @@ UniValue heirfund(const UniValue& params, bool fHelp)
return result;
}
if(params.size() == 6) // tokens in satoshis:
if(params.size() == 7) // tokens in satoshis:
amount = atoll(params[1].get_str().c_str());
else // coins:
amount = atof(params[1].get_str().c_str()) * COIN;