diff --git a/src/NetworkOPs.cpp b/src/NetworkOPs.cpp index f27a89971..c7ff5e825 100644 --- a/src/NetworkOPs.cpp +++ b/src/NetworkOPs.cpp @@ -90,9 +90,9 @@ Transaction::pointer NetworkOPs::processTransaction(Transaction::pointer trans, boost::shared_ptr tx = boost::make_shared(); - Serializer::pointer s; - trans->getSTransaction()->getTransaction(*s, false); - tx->set_rawtransaction(&s->getData().front(), s->getLength()); + Serializer s; + trans->getSTransaction()->getTransaction(s, false); + tx->set_rawtransaction(&s.getData().front(), s.getLength()); tx->set_status(newcoin::tsCURRENT); tx->set_receivetimestamp(getNetworkTimeNC()); tx->set_ledgerindexpossible(trans->getLedger());