aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_payments.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-04-21 08:26:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-04-21 08:26:54 -0500
commit2d729fbdf79e8f161159bd54ac88b2d7836738ac (patch)
tree852ba7aa8bf9479c6c0991baef0fa6bd1c0f30e2 /src/wallet/wallet_rpc_payments.cpp
parentMerge pull request #6278 (diff)
parentAllow wallet2.h to run in WebAssembly (diff)
downloadmonero-2d729fbdf79e8f161159bd54ac88b2d7836738ac.tar.xz
Merge pull request #6332
87d7558 Allow wallet2.h to run in WebAssembly (woodser)
Diffstat (limited to 'src/wallet/wallet_rpc_payments.cpp')
-rw-r--r--src/wallet/wallet_rpc_payments.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_payments.cpp b/src/wallet/wallet_rpc_payments.cpp
index 41696d13b..4f5364269 100644
--- a/src/wallet/wallet_rpc_payments.cpp
+++ b/src/wallet/wallet_rpc_payments.cpp
@@ -85,7 +85,7 @@ bool wallet2::make_rpc_payment(uint32_t nonce, uint32_t cookie, uint64_t &credit
uint64_t pre_call_credits = m_rpc_payment_state.credits;
req.client = get_client_signature();
epee::json_rpc::error error;
- bool r = epee::net_utils::invoke_http_json_rpc("/json_rpc", "rpc_access_submit_nonce", req, res, error, m_http_client, rpc_timeout);
+ bool r = epee::net_utils::invoke_http_json_rpc("/json_rpc", "rpc_access_submit_nonce", req, res, error, *m_http_client, rpc_timeout);
m_daemon_rpc_mutex.unlock();
THROW_ON_RPC_RESPONSE_ERROR_GENERIC(r, error, res, "rpc_access_submit_nonce");
THROW_WALLET_EXCEPTION_IF(res.credits < pre_call_credits, error::wallet_internal_error, "RPC payment did not increase balance");