From 1a964522870fb72c99ca415961801b893919b944 Mon Sep 17 00:00:00 2001 From: Pasta Date: Thu, 1 Aug 2019 11:33:45 -0500 Subject: [PATCH] add gArgs Signed-off-by: Pasta --- src/dash-cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {