mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Clean up some code redundancy.
Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop
This commit is contained in:
parent
0934d0e943
commit
b655a8b9ae
@ -48,6 +48,13 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
|
|||||||
if (!txFromRlp.signature().isValid())
|
if (!txFromRlp.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") );
|
||||||
}
|
}
|
||||||
|
catch(Exception const& _e)
|
||||||
|
{
|
||||||
|
cnote << i.first;
|
||||||
|
cnote << "Transaction Exception: " << diagnostic_information(_e);
|
||||||
|
BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!");
|
BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!");
|
||||||
|
@ -571,6 +571,7 @@
|
|||||||
"s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
|
"s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"unpadedRValue": {
|
"unpadedRValue": {
|
||||||
"transaction": {
|
"transaction": {
|
||||||
"nonce": "13",
|
"nonce": "13",
|
||||||
@ -583,5 +584,19 @@
|
|||||||
"v": "28",
|
"v": "28",
|
||||||
"value": ""
|
"value": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"libsecp256k1test": {
|
||||||
|
"transaction": {
|
||||||
|
"nonce": "",
|
||||||
|
"gasPrice": "0x09184e72a000",
|
||||||
|
"gasLimit": "0x1388",
|
||||||
|
"to": "",
|
||||||
|
"data": "",
|
||||||
|
"r": "44",
|
||||||
|
"s": "4",
|
||||||
|
"v": "27",
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user