aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2016-12-06 08:56:12 -0500
committerAlex Morcos <morcos@chaincode.com>2016-12-06 08:56:12 -0500
commit28f8ae8adfd4c2fcf5709d77aa77484fd77f3e2c (patch)
tree900ee71f93667ecc0e58df3a1c9f02db882a64fd
parente15660c16f753d7be671526a988e29b88c3fd2da (diff)
Fix missed change to WalletTx structure
-rw-r--r--src/qt/walletmodel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index a78fc90d2c..afc72fae69 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -335,9 +335,8 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
if(!wallet->CommitTransaction(*newTx, *keyChange, g_connman.get(), state))
return SendCoinsReturn(TransactionCommitFailed, QString::fromStdString(state.GetRejectReason()));
- CTransaction* t = (CTransaction*)newTx;
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
- ssTx << *t;
+ ssTx << *newTx->tx;
transaction_array.append(&(ssTx[0]), ssTx.size());
}