diff options
-rw-r--r-- | TestHelper.cpp | 2 | ||||
-rw-r--r-- | transaction.cpp | 2 | ||||
-rw-r--r-- | ttTransactionTestFiller.json | 31 |
3 files changed, 33 insertions, 2 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index ea44111c..f82b72b8 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -170,7 +170,7 @@ void ImportTest::importTransaction(json_spirit::mObject& _o) } } -void ImportTest::exportTest(bytes _output, State& _statePost) +void ImportTest::exportTest(bytes const& _output, State const& _statePost) { // export output m_TestObject["out"] = "0x" + toHex(_output); diff --git a/transaction.cpp b/transaction.cpp index c7a0e61d..8cda18f1 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -104,7 +104,7 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) BOOST_AUTO_TEST_SUITE(TransactionTests) -BOOST_AUTO_TEST_CASE(TransactionTest) +BOOST_AUTO_TEST_CASE(ttTransactionTest) { dev::test::executeTests("ttTransactionTest", "/TransactionTests", dev::test::doTransactionTests); } diff --git a/ttTransactionTestFiller.json b/ttTransactionTestFiller.json index 23a384d5..96e4c78a 100644 --- a/ttTransactionTestFiller.json +++ b/ttTransactionTestFiller.json @@ -59,6 +59,21 @@ } }, + "WrongVRSTestVOverflow" : { + "transaction" : + { + "data" : "", + "gasLimit" : "2000", + "gasPrice" : "1", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "10", + "v" : "310", + "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a", + "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" + } + }, + "WrongVRSTestIncorrectSize" : { "transaction" : { @@ -91,6 +106,22 @@ } }, + "DataTest" : { + "transaction" : + { + "data" : "0x0358ac39584bc98a7c979f984b03", + "gasLimit" : "850", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + }, + "TransactionWithTooManyRLPElements" : { "transaction" : { |