From 54910d44842c5cc748a29d31e3ec540ebc946d18 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 19 Jun 2019 13:27:40 -0400 Subject: [PATCH] transferRequest does not serialize txRequest --- src/wallet/MoneroWalletModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/MoneroWalletModel.cpp b/src/wallet/MoneroWalletModel.cpp index 19241dc..24f1cce 100644 --- a/src/wallet/MoneroWalletModel.cpp +++ b/src/wallet/MoneroWalletModel.cpp @@ -81,6 +81,7 @@ namespace monero { boost::property_tree::ptree MoneroTxRequest::toPropertyTree() const { //cout << "MoneroTxRequest::toPropertyTree(node)" << endl; + //if (transferRequest != boost::none) node.add_child("transferRequest", (*transferRequest)->toPropertyTree()); throw runtime_error("MoneroTxRequest toPropertyTree() Not implemented"); } @@ -156,7 +157,6 @@ namespace monero { if (address != boost::none) node.put("address", *address); if (subaddressIndex != boost::none) node.put("subaddressIndex", *subaddressIndex); if (hasDestinations != boost::none) node.put("hasDestinations", *hasDestinations); - if (txRequest != boost::none) node.add_child("txRequest", (*txRequest)->toPropertyTree()); if (!subaddressIndices.empty()) node.add_child("subaddressIndices", MoneroUtils::toPropertyTree(subaddressIndices)); if (!addresses.empty()) node.add_child("addresses", MoneroUtils::toPropertyTree(addresses)); if (!destinations.empty()) node.add_child("destinations", MoneroUtils::toPropertyTree(destinations));