mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
rpc/wallet: Workaround older UniValue which returns a std::string temporary for get_str
This commit is contained in:
parent
02d9f50d5f
commit
a637734ba2
@ -729,7 +729,8 @@ UniValue getbalance(const JSONRPCRequest& request)
|
|||||||
if (request.params.size() == 0)
|
if (request.params.size() == 0)
|
||||||
return ValueFromAmount(pwallet->GetBalance());
|
return ValueFromAmount(pwallet->GetBalance());
|
||||||
|
|
||||||
const std::string* account = request.params[0].get_str() != "*" ? &request.params[0].get_str() : nullptr;
|
const std::string& account_param = request.params[0].get_str();
|
||||||
|
const std::string* account = account_param != "*" ? &account_param : nullptr;
|
||||||
|
|
||||||
int nMinDepth = 1;
|
int nMinDepth = 1;
|
||||||
if (request.params.size() > 1)
|
if (request.params.size() > 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user