diff --git a/src/dash-cli.cpp b/src/dash-cli.cpp index d31c954be..040730531 100644 --- a/src/dash-cli.cpp +++ b/src/dash-cli.cpp @@ -257,7 +257,7 @@ UniValue CallRPC(const std::string& strMethod, const UniValue& params) // check if we should use a special wallet endpoint std::string endpoint = "/"; - std::string walletName = GetArg("-usewallet", ""); + std::string walletName = gArgs.GetArg("-usewallet", ""); if (!walletName.empty()) { char *encodedURI = evhttp_uriencode(walletName.c_str(), walletName.size(), false); if (encodedURI) {