diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index 943cd133..eceb536e 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -604,8 +604,9 @@ namespace plain_wallet { PLAIN_WALLET_BEGIN_TRY_ENTRY(); GET_INSTANCE_PTR(inst_ptr); - return inst_ptr->gwm.invoke(h, params); - tools::sanitize_utf8(params); + std::string res = inst_ptr->gwm.invoke(h, params); + tools::sanitize_utf8(res); + return res; PLAIN_WALLET_CATCH(); }