From e394375d8fdc4ea9beb222a58b5a447707e761fd Mon Sep 17 00:00:00 2001 From: winsvega Date: Fri, 24 Apr 2015 15:59:07 +0300 Subject: [PATCH] newtests: Transaction Data Zerobytes --- .../ttTransactionTestFiller.json | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/test/libethereum/TransactionTestsFiller/ttTransactionTestFiller.json b/test/libethereum/TransactionTestsFiller/ttTransactionTestFiller.json index de9a09596..5b24b9e51 100644 --- a/test/libethereum/TransactionTestsFiller/ttTransactionTestFiller.json +++ b/test/libethereum/TransactionTestsFiller/ttTransactionTestFiller.json @@ -227,6 +227,57 @@ } }, + "DataTestZeroBytes" : { + "expect" : "valid", + "transaction" : + { + "data" : "0x000000000000000000000000000000000000000000000000000000000", + "gasLimit" : "25000", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + }, + + "DataTestLastZeroBytes" : { + "expect" : "valid", + "transaction" : + { + "data" : "0x010000000000000000000000000000000000000000000000000000000", + "gasLimit" : "25000", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + }, + + "DataTestFirstZeroBytes" : { + "expect" : "valid", + "transaction" : + { + "data" : "0x000000000000000000000000001000000000000000000000000000000", + "gasLimit" : "25000", + "gasPrice" : "1", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10", + "v" : "27", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + } + }, + "TransactionWithTooManyRLPElements" : { "expect" : "invalid", "transaction" :