diff --git a/src/daemon/MoneroDaemonModel.cpp b/src/daemon/MoneroDaemonModel.cpp index fa40a9c..b44a91c 100644 --- a/src/daemon/MoneroDaemonModel.cpp +++ b/src/daemon/MoneroDaemonModel.cpp @@ -184,7 +184,7 @@ namespace monero { } shared_ptr MoneroTx::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroTx::toPropertyTree() const { @@ -387,7 +387,7 @@ namespace monero { } shared_ptr MoneroOutput::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroOutput::toPropertyTree() const { diff --git a/src/wallet/MoneroWalletModel.cpp b/src/wallet/MoneroWalletModel.cpp index 1cb4857..9602aa0 100644 --- a/src/wallet/MoneroWalletModel.cpp +++ b/src/wallet/MoneroWalletModel.cpp @@ -170,7 +170,7 @@ namespace monero { } shared_ptr MoneroTxRequest::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroTxRequest::toPropertyTree() const { @@ -475,7 +475,7 @@ namespace monero { } shared_ptr MoneroOutputWallet::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroOutputWallet::toPropertyTree() const { @@ -507,7 +507,7 @@ namespace monero { } shared_ptr MoneroOutputRequest::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroOutputRequest::toPropertyTree() const {