aboutsummaryrefslogtreecommitdiffstats
path: root/transaction.cpp
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-02-23 15:29:56 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-02-23 15:29:56 +0800
commit5554861fb3a135f2ee962f2ee2a1fd321143ea6e (patch)
tree5914e81cd76c62408052d91f6838a7580421b7ef /transaction.cpp
parent4144c63d9f1b7b25c4aaee29c21f412590aefe29 (diff)
downloaddexon-solidity-5554861fb3a135f2ee962f2ee2a1fd321143ea6e.tar.gz
dexon-solidity-5554861fb3a135f2ee962f2ee2a1fd321143ea6e.tar.zst
dexon-solidity-5554861fb3a135f2ee962f2ee2a1fd321143ea6e.zip
fix too-small-address-length bug in transaction
Diffstat (limited to 'transaction.cpp')
-rw-r--r--transaction.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/transaction.cpp b/transaction.cpp
index 7bd8ac20..6ebe6275 100644
--- a/transaction.cpp
+++ b/transaction.cpp
@@ -51,7 +51,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin)
catch(...)
{
BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!");
- return;
+ continue;
}
BOOST_REQUIRE(o.count("transaction") > 0);
@@ -108,6 +108,11 @@ BOOST_AUTO_TEST_CASE(TransactionTest)
dev::test::executeTests("ttTransactionTest", "/TransactionTests", dev::test::doTransactionTests);
}
+BOOST_AUTO_TEST_CASE(ttWrongRLPTransaction)
+{
+ dev::test::executeTests("ttWrongRLPTransaction", "/TransactionTests", dev::test::doTransactionTests);
+}
+
BOOST_AUTO_TEST_CASE(tt10mbDataField)
{
dev::test::executeTests("tt10mbDataField", "/TransactionTests", dev::test::doTransactionTests);