From 63b806b5973f02e2e61f5ae65e1a98d37d9a7345 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 31 May 2012 20:48:43 -0700 Subject: [PATCH] Set source account properly --- src/SerializedTransaction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SerializedTransaction.cpp b/src/SerializedTransaction.cpp index f45a41c71c..e4a4fefa44 100644 --- a/src/SerializedTransaction.cpp +++ b/src/SerializedTransaction.cpp @@ -32,7 +32,11 @@ SerializedTransaction::SerializedTransaction(SerializerIterator& sit, int length mMiddleTxn.giveObject(new STUInt32("Magic", TransactionMagic)); mMiddleTxn.giveObject(new STVariableLength("SigningPubKey", sit.getVL())); - mMiddleTxn.giveObject(new STAccount("SourceAccount", sit.getVL())); + + STAccount sa("SourceAccount", sit.getVL()); + mSourceAccount = sa.getValueNCA(); + mMiddleTxn.giveObject(new STAccount(sa)); + mMiddleTxn.giveObject(new STUInt32("Sequence", sit.get32())); mType = static_cast(sit.get16());