aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <winsvega@mail.ru>2017-03-24 00:23:26 +0800
committerDimitry <winsvega@mail.ru>2017-03-24 00:23:26 +0800
commite8ffd5d28a236032e195f08c9561f71ae9b6e6ea (patch)
tree049cc843baca464494f22ef26e7a0aecbbbbc808
parent7c60c32a115e088acc2c79197e66b84c2cfda790 (diff)
downloadtangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.tar
tangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.tar.gz
tangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.tar.bz2
tangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.tar.lz
tangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.tar.xz
tangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.tar.zst
tangerine-tests-e8ffd5d28a236032e195f08c9561f71ae9b6e6ea.zip
more revert tests
-rw-r--r--GeneralStateTests/stRevertTest/RevertOpcodeMultipleSubCalls.json1070
-rw-r--r--GeneralStateTests/stRevertTest/RevertOpcodeReturn.json407
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeMultipleSubCallsFiller.json471
-rw-r--r--src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json164
4 files changed, 2112 insertions, 0 deletions
diff --git a/GeneralStateTests/stRevertTest/RevertOpcodeMultipleSubCalls.json b/GeneralStateTests/stRevertTest/RevertOpcodeMultipleSubCalls.json
new file mode 100644
index 000000000..53dbc6ef8
--- /dev/null
+++ b/GeneralStateTests/stRevertTest/RevertOpcodeMultipleSubCalls.json
@@ -0,0 +1,1070 @@
+{
+ "RevertOpcodeMultipleSubCalls" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "d8f4e54b56f537699870c958f97ff83480035abfbd13d3511d418baa5cae7c09",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b6cc57520d9770d30f2ae303a3011772a6a92d1746b1a4ef6f6894ddefb8b78b",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "5d50590051ccaf4888d6aaea2e67c3c221418e6d63ac08ccaeb83f8972cef939",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "34b72637b56181f53edcff598845763a878c55eeb2366ba4d1e4f3e6244c9062",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "c5a643f1bfb926531f64c8bacaed120944594d9d40bb9623bab4da7b3a223f12",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "e5636003a6a46f677815d577aa34d0327e1ffb059035e6d7bd1c0cde96bbcc68",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "1afdbdfbba02f176a74a058ce687039fc418c16426ee072cf820edaa1136a20a",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "4ad3d92aa98e194cb4b7bf8f889adc498f316c5a026fc36e4150b2cfa026a83c",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "d8f4e54b56f537699870c958f97ff83480035abfbd13d3511d418baa5cae7c09",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b6cc57520d9770d30f2ae303a3011772a6a92d1746b1a4ef6f6894ddefb8b78b",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "5d50590051ccaf4888d6aaea2e67c3c221418e6d63ac08ccaeb83f8972cef939",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "34b72637b56181f53edcff598845763a878c55eeb2366ba4d1e4f3e6244c9062",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "c5a643f1bfb926531f64c8bacaed120944594d9d40bb9623bab4da7b3a223f12",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "e5636003a6a46f677815d577aa34d0327e1ffb059035e6d7bd1c0cde96bbcc68",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "1afdbdfbba02f176a74a058ce687039fc418c16426ee072cf820edaa1136a20a",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "4ad3d92aa98e194cb4b7bf8f889adc498f316c5a026fc36e4150b2cfa026a83c",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "452462f2784e5e62794fc446e9ac8ccabaa0bacf0b31de5bb75118b15ebcfa98",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "1e6f2866ebc2ec3bd095dd5d1e0a9003dff8c46d740422e032564e23800e401c",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "1092feb631e5d2b0bb2ca83f9f68b54c53717f8ceda091616c67aa01bf2f6715",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "69e43bbf019adedcae45878e4efb53768e49d66b68fa4ed04f0e1e4568ca41a7",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "f6b3cbbd0610954032c6d46f6415ef5bff8742fbee55230fe12211ded4220c3d",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "d82deee3a810865a30ee17dee27244ecc812f3270ae1eb67c40f7aaf80907622",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "1a19c6ab26d1bc1fb3130c16132d82cc6bb770cc7e3f235be283a9c6a574d706",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "d82deee3a810865a30ee17dee27244ecc812f3270ae1eb67c40f7aaf80907622",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "1a19c6ab26d1bc1fb3130c16132d82cc6bb770cc7e3f235be283a9c6a574d706",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "1e6f2866ebc2ec3bd095dd5d1e0a9003dff8c46d740422e032564e23800e401c",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "1092feb631e5d2b0bb2ca83f9f68b54c53717f8ceda091616c67aa01bf2f6715",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "69e43bbf019adedcae45878e4efb53768e49d66b68fa4ed04f0e1e4568ca41a7",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "f6b3cbbd0610954032c6d46f6415ef5bff8742fbee55230fe12211ded4220c3d",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "f831c6b1f491ca064a59088ac753fe9b9f6376112b08acd3ee9d7b2dd56ba209",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "5f9dbebae5fe583e47a8e4a2212dca465e4679785618107655e492a9c38f8397",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "06d00ec0437967bfa535b2c7830db5a63042d73368beb07d68d2ed93bc769f03",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "697f6c1e9bc4bcb230fa4a941c977d44e74245e9af445c132d83d9cced610adb",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "9ac31168816aa36d6c71895d033daa0b610b199362690f733928dbef23f28820",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "42db4e9f44d4f4a29bbc31a072e3edec7582ff609a61aa32e8cab35eca0a1f60",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "Metropolis" : [
+ {
+ "hash" : "0d5d08c8c0210385e1865b08bddfd587374101dca1d8c5fd742c2190bf0e8896",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "3b05c423e989d7194ad01d56f2e02d83d02ad5da5229f25115b70f1c900b1175",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "0d5d08c8c0210385e1865b08bddfd587374101dca1d8c5fd742c2190bf0e8896",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "d4665d8c9ac719905760789f673547c9b3dfac019de16927425ec15edfdc9120",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "4be4239346c58728bf03f73db3972d910aba430381f75ab21de7f3b159b853e5",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "d4665d8c9ac719905760789f673547c9b3dfac019de16927425ec15edfdc9120",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "cd6b7eaaf45a25d75c469f80e2db5040b3c59468ddff532c5cf2905770bad8d8",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "5b7a2786504e3b04cc188b341b471575d14eda0c5672aa7ec71063c8b25ce0a5",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "cd6b7eaaf45a25d75c469f80e2db5040b3c59468ddff532c5cf2905770bad8d8",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 2,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "59a5ce3fb2c533414c942e510e28acd036f21fd09a8ef311964f1f3fa5575067",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "1214d03452362259ca7c0db5a39ccc67d511598ff6c7a2bc642c03d7e796da41",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "01cb4b1894d236991dd8f624910ac7cd11708731342187df760267723c7609a8",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "194d498eda8247cc0f13bd37c69b1151c4ab3c1e65e8815b9ce1cbdd0c9ee4a1",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "59a5ce3fb2c533414c942e510e28acd036f21fd09a8ef311964f1f3fa5575067",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "40eaaa6cb4a01c40aa0ff762ffcfe3dfeed6f0ec1a7529c7b139fc02c8d36135",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "a000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6000600060006000600073b00000000000000000000000000000000000000061c350f1600a556000600060006000600073c00000000000000000000000000000000000000061c350f1600b556000600060006000600073d00000000000000000000000000000000000000061c350f1600c55600c600455600c600555",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6000600060006000600073b00000000000000000000000000000000000000061c350f2600a556000600060006000600073c00000000000000000000000000000000000000061c350f2600b556000600060006000600073d00000000000000000000000000000000000000061c350f2600c55600c600455600c600555",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x600060006000600073b00000000000000000000000000000000000000061c350f4600a55600060006000600073c00000000000000000000000000000000000000061c350f4600b55600060006000600073d00000000000000000000000000000000000000061c350f4600c55600c600455600c600555",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6000600060006000600073b00000000000000000000000000000000000000061c350f1600a55600060006000600073c00000000000000000000000000000000000000061c350f4600b556000600060006000600073d00000000000000000000000000000000000000061c350f2600c55600c600455600c600555",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "ac00000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6000600060006000346000356203f7a0f1",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x600c60015560016000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x600c60025560016000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x600c60035560016000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "000000000000000000000000a000000000000000000000000000000000000000",
+ "000000000000000000000000a100000000000000000000000000000000000000",
+ "000000000000000000000000a200000000000000000000000000000000000000",
+ "000000000000000000000000a300000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "800000",
+ "160000",
+ "190000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "ac00000000000000000000000000000000000000",
+ "value" : [
+ "0",
+ "10"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stRevertTest/RevertOpcodeReturn.json b/GeneralStateTests/stRevertTest/RevertOpcodeReturn.json
new file mode 100644
index 000000000..418b4acf7
--- /dev/null
+++ b/GeneralStateTests/stRevertTest/RevertOpcodeReturn.json
@@ -0,0 +1,407 @@
+{
+ "RevertOpcodeReturn" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "edd8bf8dc51622ae78bd758dfbcca07bf1d2437be4675d9ce71ca25b0e7d8e79",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ }
+ ],
+ "Metropolis" : [
+ {
+ "hash" : "f2aab765af27a8c954edfdda67b410be41214ef75f6592cfbdd4416991d8e49d",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "fe19aed48e0c9bf2446af00c4a20e0f462caf5044a5a58256cd0160d8c6ccdc1",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "fe19aed48e0c9bf2446af00c4a20e0f462caf5044a5a58256cd0160d8c6ccdc1",
+ "indexes" : {
+ "data" : 1,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "b8af687cc87c69c2e22b5c56c9a2877a830f561e574814d6b21ebdd708706bc9",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "0c5bc5f7dfbceb41280a74768c7285b6797c3f0e23be8b5b403c5c6449e5bc25",
+ "indexes" : {
+ "data" : 2,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "fe19aed48e0c9bf2446af00c4a20e0f462caf5044a5a58256cd0160d8c6ccdc1",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "fe19aed48e0c9bf2446af00c4a20e0f462caf5044a5a58256cd0160d8c6ccdc1",
+ "indexes" : {
+ "data" : 3,
+ "gas" : 1,
+ "value" : 0
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "a000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x60206000600060006000600035620249f0f1600155600051600255",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6c726576657274656420646174616000556d726576657274206d65737361676560005260206000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6c726576657274656420646174616000556d726576657274206d65737361676560005260006000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6c726576657274656420646174616000556d726576657274206d6573736167656000526e0fffffffffffffffffffffffffffff6000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a400000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0x6c726576657274656420646174616000556d726576657274206d6573736167656000526000610100fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "000000000000000000000000a100000000000000000000000000000000000000",
+ "000000000000000000000000a200000000000000000000000000000000000000",
+ "000000000000000000000000a300000000000000000000000000000000000000",
+ "000000000000000000000000a400000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "800000",
+ "70000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "a000000000000000000000000000000000000000",
+ "value" : [
+ "0"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeMultipleSubCallsFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeMultipleSubCallsFiller.json
new file mode 100644
index 000000000..409c06e2d
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeMultipleSubCallsFiller.json
@@ -0,0 +1,471 @@
+{
+ "RevertOpcodeMultipleSubCalls" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150", "EIP158"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x04" : "0x0c",
+ "0x05" : "0x0c"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x0c",
+ "0x05" : "0x0c",
+ "0x0a" : "0x01",
+ "0x0b" : "0x01",
+ "0x0c" : "0x01"
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 1,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a100000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x0c",
+ "0x05" : "0x0c",
+ "0x0a" : "0x01",
+ "0x0b" : "0x01",
+ "0x0c" : "0x01"
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 2,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a200000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x0c",
+ "0x05" : "0x0c",
+ "0x0a" : "0x01",
+ "0x0b" : "0x01",
+ "0x0c" : "0x01"
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 3,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a300000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x0c",
+ "0x05" : "0x0c",
+ "0x0a" : "0x01",
+ "0x0b" : "0x01",
+ "0x0c" : "0x01"
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [2],
+ "value" : 1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x00",
+ "0x05" : "0x00",
+ "0x0a" : "0x00",
+ "0x0b" : "0x00",
+ "0x0c" : "0x00"
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : [2],
+ "value" : 0
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x0c",
+ "0x05" : "0x0c",
+ "0x0a" : "0x01",
+ "0x0b" : "0x01",
+ "0x0c" : "0x01"
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : [1],
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "0x01"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ "0x04" : "0x00",
+ "0x05" : "0x00",
+ "0x0a" : "0x00",
+ "0x0b" : "0x00",
+ "0x0c" : "0x00"
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00",
+ "0x03" : "0x00"
+ }
+ }
+ }
+ }
+ ],
+ "pre" :
+ {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "ac00000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (CALL 260000 (CALLDATALOAD 0) (CALLVALUE) 0 0 0 0) }",
+ "nonce" : "0",
+ "storage" : {}
+ },
+ "a000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "simple calls",
+ "code" : "call -> callA-> revert | callB -> revert | some code * and OOG scenarious",
+ "code" : "{ [[10]](CALL 50000 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[11]](CALL 50000 0xc000000000000000000000000000000000000000 0 0 0 0 0) [[12]](CALL 50000 0xd000000000000000000000000000000000000000 0 0 0 0 0) [[4]]12 [[5]]12 }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[10]](CALLCODE 50000 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[11]](CALLCODE 50000 0xc000000000000000000000000000000000000000 0 0 0 0 0) [[12]](CALLCODE 50000 0xd000000000000000000000000000000000000000 0 0 0 0 0) [[4]]12 [[5]]12 }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[10]](DELEGATECALL 50000 0xb000000000000000000000000000000000000000 0 0 0 0) [[11]](DELEGATECALL 50000 0xc000000000000000000000000000000000000000 0 0 0 0) [[12]](DELEGATECALL 50000 0xd000000000000000000000000000000000000000 0 0 0 0) [[4]]12 [[5]]12 }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[10]](CALL 50000 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[11]](DELEGATECALL 50000 0xc000000000000000000000000000000000000000 0 0 0 0) [[12]](CALLCODE 50000 0xd000000000000000000000000000000000000000 0 0 0 0 0) [[4]]12 [[5]]12 }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "b000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[1]] 12 (REVERT 0 1) }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "c000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[2]] 12 (REVERT 0 1) }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "d000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[3]] 12 (REVERT 0 1) }",
+ "nonce" : "",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "000000000000000000000000a000000000000000000000000000000000000000",
+ "000000000000000000000000a100000000000000000000000000000000000000",
+ "000000000000000000000000a200000000000000000000000000000000000000",
+ "000000000000000000000000a300000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "800000", "160000", "190000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "ac00000000000000000000000000000000000000",
+ "value" : [
+ "0", "10"
+ ]
+ }
+ }
+}
diff --git a/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json b/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json
new file mode 100644
index 000000000..bfa126b39
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stRevertTest/RevertOpcodeReturnFiller.json
@@ -0,0 +1,164 @@
+{
+ "RevertOpcodeReturn" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : ["Frontier", "Homestead", "EIP150", "EIP158"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "storage" : {
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x726576657274206d657373616765"
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "storage" : {
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [1,3],
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x01",
+ "0x02" : "0x00"
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "storage" : {
+ }
+ }
+ }
+ },
+ {
+ "indexes" : {
+ "data" : [2],
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : ["Metropolis"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "nonce" : "1"
+ },
+ "a000000000000000000000000000000000000000" : {
+ "storage" : {
+ "0x01" : "0x00",
+ "0x02" : "0x00"
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "storage" : {
+ }
+ }
+ }
+ }
+ ],
+ "pre" :
+ {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a000000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ [[1]](CALL 150000 (CALLDATALOAD 0) 0 0 0 0 32) [[2]] (MLOAD 0) }",
+ "nonce" : "",
+ "storage" : {
+ }
+ },
+ "a100000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0 32) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a200000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0 0) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a300000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0 0xfffffffffffffffffffffffffffff) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a400000000000000000000000000000000000000" : {
+ "balance" : "0",
+ "code" : "{ (SSTORE 0 0x72657665727465642064617461) (MSTORE 0 0x726576657274206d657373616765) (REVERT 0x100 0x00) }",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "000000000000000000000000a100000000000000000000000000000000000000",
+ "000000000000000000000000a200000000000000000000000000000000000000",
+ "000000000000000000000000a300000000000000000000000000000000000000",
+ "000000000000000000000000a400000000000000000000000000000000000000"
+ ],
+ "gasLimit" : [
+ "800000", "70000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "a000000000000000000000000000000000000000",
+ "value" : [
+ "0"
+ ]
+ }
+ }
+}