mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
AllFieldsHex: transaction test fix
This commit is contained in:
parent
d175996b3a
commit
7d44af8b88
@ -39,8 +39,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
if (_fillin)
|
if (_fillin)
|
||||||
{
|
{
|
||||||
BOOST_REQUIRE(o.count("transaction") > 0);
|
BOOST_REQUIRE(o.count("transaction") > 0);
|
||||||
mObject tObj = o["transaction"].get_obj();
|
mObject tObj = o["transaction"].get_obj();
|
||||||
o["transaction"] = ImportTest::makeAllFieldsHex(tObj);
|
|
||||||
|
|
||||||
//Construct Rlp of the given transaction
|
//Construct Rlp of the given transaction
|
||||||
RLPStream rlpStream = createRLPStreamFromTransactionFields(tObj);
|
RLPStream rlpStream = createRLPStreamFromTransactionFields(tObj);
|
||||||
@ -52,7 +51,8 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
if (!txFromFields.signature().isValid())
|
if (!txFromFields.signature().isValid())
|
||||||
BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") );
|
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)
|
catch(Exception const& _e)
|
||||||
{
|
{
|
||||||
@ -82,6 +82,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
|
|
||||||
o.erase(o.find("expect"));
|
o.erase(o.find("expect"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user