Skip to content

Commit

Permalink
fix namespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CaveSpectre11 committed Jul 26, 2019
1 parent 2c87d35 commit 66cb6c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpc/budget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ UniValue preparebudget(const UniValue& params, bool fHelp)
if ((strURL.front() == 'h') || (strURL.front() == 'H')) {
std::size_t found = strURL.find("ttp://") == 1 ? strURL.find("ttp://") : strURL.find("ttps://");
if (found != 1)
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid url, add scheme (e.g. https://)"));
throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid url, add scheme (e.g. https://)"));
} else {
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid url, add scheme (e.g. https://)"));
throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid url, add scheme (e.g. https://)"));
}

int nPaymentCount = params[2].get_int();
Expand Down Expand Up @@ -191,9 +191,9 @@ UniValue submitbudget(const UniValue& params, bool fHelp)
if ((strURL.front() == 'h') || (strURL.front() == 'H')) {
std::size_t found = strURL.find("ttp://") == 1 ? strURL.find("ttp://") : strURL.find("ttps://");
if (found != 1)
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid url, add scheme (e.g. https://)"));
throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid url, add scheme (e.g. https://)"));
} else {
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid url, add scheme (e.g. https://)"));
throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid url, add scheme (e.g. https://)"));
}

int nPaymentCount = params[2].get_int();
Expand Down

0 comments on commit 66cb6c6

Please sign in to comment.