From 93539f6bad186ecefd9198aeb1516865dedd07b2 Mon Sep 17 00:00:00 2001 From: winsvega Date: Wed, 15 Apr 2015 17:08:09 +0300 Subject: [PATCH] AllFieldsHex: transaction test fix --- test/transaction.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/transaction.cpp b/test/transaction.cpp index 613d0c32e..d38be07fe 100644 --- a/test/transaction.cpp +++ b/test/transaction.cpp @@ -39,8 +39,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) if (_fillin) { BOOST_REQUIRE(o.count("transaction") > 0); - mObject tObj = o["transaction"].get_obj(); - o["transaction"] = ImportTest::makeAllFieldsHex(tObj); + mObject tObj = o["transaction"].get_obj(); //Construct Rlp of the given transaction RLPStream rlpStream = createRLPStreamFromTransactionFields(tObj); @@ -52,7 +51,8 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) if (!txFromFields.signature().isValid()) BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") ); - o["sender"] = toString(txFromFields.sender()); + o["sender"] = toString(txFromFields.sender()); + o["transaction"] = ImportTest::makeAllFieldsHex(tObj); } catch(Exception const& _e) { @@ -82,6 +82,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) o.erase(o.find("expect")); } + } else {