From d1a31850ce5f8893c2d1d77a68e7635af199233a Mon Sep 17 00:00:00 2001 From: wanderer Date: Tue, 10 Feb 2015 14:38:48 -0500 Subject: [PATCH 1/5] added transaction tests to index.js --- index.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 47acfdbfb..732cb7b26 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,9 @@ Object.defineProperties(tests, { stateTests: { get: require('require-all').bind(this, __dirname + '/StateTests/') }, + transactionTests:{ + get: require('require-all').bind(this, __dirname + '/TransactionTests/') + }, vmTests: { get: require('require-all').bind(this, __dirname + '/VMTests') } diff --git a/package.json b/package.json index 6b1446756..a53fbae6a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ethereum-tests", - "version": "0.0.3", + "version": "0.0.4", "description": "tests for ethereum", "main": "index.js", "scripts": { From eaec21f199f2b6189d62a43e3454f844358e570b Mon Sep 17 00:00:00 2001 From: martin becze Date: Tue, 10 Feb 2015 20:29:08 -0500 Subject: [PATCH 2/5] Update ttTransactionTest.json --- TransactionTests/ttTransactionTest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TransactionTests/ttTransactionTest.json b/TransactionTests/ttTransactionTest.json index 5949b4f50..e57437f1a 100644 --- a/TransactionTests/ttTransactionTest.json +++ b/TransactionTests/ttTransactionTest.json @@ -4,7 +4,7 @@ "sender" : "66c7b5c28121e4b66583d15481c92f5ad848fe1f", "transaction" : { "data" : "", - "gasLimit" : "", + "gasLimit" : "500", "gasPrice" : "", "nonce" : "", "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", @@ -120,4 +120,4 @@ "WrongVRSTestVl27" : { "rlp" : "0xf85f80018207d094b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a801aa098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" } -} \ No newline at end of file +} From 74e1320a0b93fcc812a570c84c7dc0931a6bd047 Mon Sep 17 00:00:00 2001 From: martin becze Date: Tue, 10 Feb 2015 20:36:27 -0500 Subject: [PATCH 3/5] Update ttTransactionTest.json updated RLP --- TransactionTests/ttTransactionTest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TransactionTests/ttTransactionTest.json b/TransactionTests/ttTransactionTest.json index e57437f1a..a15309aa1 100644 --- a/TransactionTests/ttTransactionTest.json +++ b/TransactionTests/ttTransactionTest.json @@ -1,6 +1,6 @@ { "EmptyTransaction" : { - "rlp" : "0xf8498080808080801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804", + "rlp" : "0xf84b80808201f48080801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804", "sender" : "66c7b5c28121e4b66583d15481c92f5ad848fe1f", "transaction" : { "data" : "", From 5a89c6f80309607339281057c56ccb038bd7161f Mon Sep 17 00:00:00 2001 From: martin becze Date: Tue, 10 Feb 2015 20:53:43 -0500 Subject: [PATCH 4/5] Update ttTransactionTest.json updated signature --- TransactionTests/ttTransactionTest.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TransactionTests/ttTransactionTest.json b/TransactionTests/ttTransactionTest.json index a15309aa1..4278a9acd 100644 --- a/TransactionTests/ttTransactionTest.json +++ b/TransactionTests/ttTransactionTest.json @@ -1,16 +1,16 @@ { "EmptyTransaction" : { "rlp" : "0xf84b80808201f48080801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804", - "sender" : "66c7b5c28121e4b66583d15481c92f5ad848fe1f", + "sender" : "be862ad9abfe6f22bcb087716c7d89a26051f74c", "transaction" : { "data" : "", "gasLimit" : "500", "gasPrice" : "", "nonce" : "", - "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", - "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804", + "r" : "0x3f0332f12ac0e47801af82ac677a3a081153624ea5f0d4985251433ee1d69cd4", + "s" : "0x25fdd406326f226375ba7cf660a75f1888f9420510615590ff142510f89a1a50", "to" : "", - "v" : "27", + "v" : "28", "value" : "" } }, From bf2abc3b68caaf70f7fbf4ca0b4fb4b4c235618b Mon Sep 17 00:00:00 2001 From: martin becze Date: Tue, 10 Feb 2015 21:04:04 -0500 Subject: [PATCH 5/5] Update ttTransactionTest.json --- TransactionTests/ttTransactionTest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TransactionTests/ttTransactionTest.json b/TransactionTests/ttTransactionTest.json index 4278a9acd..7315df331 100644 --- a/TransactionTests/ttTransactionTest.json +++ b/TransactionTests/ttTransactionTest.json @@ -1,6 +1,6 @@ { "EmptyTransaction" : { - "rlp" : "0xf84b80808201f48080801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804", + "rlp" : "0xf84b80808201f48080801ca03f0332f12ac0e47801af82ac677a3a081153624ea5f0d4985251433ee1d69cd4a025fdd406326f226375ba7cf660a75f1888f9420510615590ff142510f89a1a50", "sender" : "be862ad9abfe6f22bcb087716c7d89a26051f74c", "transaction" : { "data" : "",