Browse Source

AllFieldsHex: transaction test fix

cl-refactor
winsvega 10 years ago
parent
commit
93539f6bad
  1. 3
      test/transaction.cpp

3
test/transaction.cpp

@ -40,7 +40,6 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
{
BOOST_REQUIRE(o.count("transaction") > 0);
mObject tObj = o["transaction"].get_obj();
o["transaction"] = ImportTest::makeAllFieldsHex(tObj);
//Construct Rlp of the given transaction
RLPStream rlpStream = createRLPStreamFromTransactionFields(tObj);
@ -53,6 +52,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") );
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
{

Loading…
Cancel
Save