From 81fbe1ed05acb659aabc386e5513e57d9349293b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 24 Oct 2016 15:07:49 -0300 Subject: [PATCH] test --- src/wallet/rpcwallet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 284b99205..6082c24a1 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -467,9 +467,10 @@ Value paxdeposit(const Array& params, bool fHelp) if (!address.IsValid()) throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Bitcoin address"); int32_t fiatunits = AmountFromValue(params[1]); - std:string dest,base = params[2].get_str(); + std::string base = params[2].get_str(); + std::basic_string dest; komodoshis = PAX_fiatdest(destaddr,pubkey33,(char *)params[0].get_str().c_str(),chainActive.Tip()->nHeight,(char *)base.c_str(),fiatunits); - dest.copy(destaddr); + dest.append(destaddr); CBitcoinAddress destaddress(dest); if (!destaddress.IsValid()) throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid dest Bitcoin address");