diff options
author | Dimitry <dimitry@ethdev.com> | 2017-01-05 03:28:14 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-01-05 03:28:14 +0800 |
commit | 3bbfd218f807a872c82b0bc38c6b19276872d385 (patch) | |
tree | 27604c06ce2d73a68b108f4f8b45e8d9876bab05 /GeneralStateTests | |
parent | 79b14fbd74c0148f1b8cca442252e9299464fe8c (diff) | |
download | tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.gz tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.bz2 tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.lz tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.xz tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.tar.zst tangerine-tests-3bbfd218f807a872c82b0bc38c6b19276872d385.zip |
more Revert tests for Create opcode
Diffstat (limited to 'GeneralStateTests')
4 files changed, 368 insertions, 0 deletions
diff --git a/GeneralStateTests/stRevertTest/RevertPrefoundCall.json b/GeneralStateTests/stRevertTest/RevertPrefoundCall.json new file mode 100644 index 000000000..2f0ff52ed --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertPrefoundCall.json @@ -0,0 +1,92 @@ +{ + "RevertPrefoundCall" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x02b8feb0", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x28d138", + "currentTimestamp" : "0x01", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "ed72adb985f07be27c7fa0aed129485c9fe288082184d69560967cfca89dccba", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "EIP158" : [ + { + "hash" : "ed72adb985f07be27c7fa0aed129485c9fe288082184d69560967cfca89dccba", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Frontier" : [ + { + "hash" : "e06a0eec31a3a3ef18732bc4f5ec10475e4791591728e3222ead654c3990343e", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Homestead" : [ + { + "hash" : "e06a0eec31a3a3ef18732bc4f5ec10475e4791591728e3222ead654c3990343e", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ] + }, + "pre" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "0x01", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "a000000000000000000000000000000000000000" : { + "balance" : "0x01", + "code" : "0x60206000602060006000737db299e0885c85039f56fa504a13dd8ce8a56aa761c350f1600055600c600155", + "nonce" : "0x00", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "94000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "a000000000000000000000000000000000000000", + "value" : [ + "0" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stRevertTest/RevertPrefoundCallOOG.json b/GeneralStateTests/stRevertTest/RevertPrefoundCallOOG.json new file mode 100644 index 000000000..2622e2e02 --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertPrefoundCallOOG.json @@ -0,0 +1,92 @@ +{ + "RevertPrefoundCallOOG" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x02b8feb0", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x28d138", + "currentTimestamp" : "0x01", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "d929a48e85304ee89d27dac9a747049fd1107c6c9511803709ef428d0825e020", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "EIP158" : [ + { + "hash" : "d929a48e85304ee89d27dac9a747049fd1107c6c9511803709ef428d0825e020", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Frontier" : [ + { + "hash" : "d929a48e85304ee89d27dac9a747049fd1107c6c9511803709ef428d0825e020", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Homestead" : [ + { + "hash" : "d929a48e85304ee89d27dac9a747049fd1107c6c9511803709ef428d0825e020", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ] + }, + "pre" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "0x01", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "a000000000000000000000000000000000000000" : { + "balance" : "0x01", + "code" : "0x60206000602060006000737db299e0885c85039f56fa504a13dd8ce8a56aa761c350f1600055600c600155600c600255", + "nonce" : "0x00", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "63000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "a000000000000000000000000000000000000000", + "value" : [ + "0" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stRevertTest/RevertPrefoundEmptyCall.json b/GeneralStateTests/stRevertTest/RevertPrefoundEmptyCall.json new file mode 100644 index 000000000..259a0b054 --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertPrefoundEmptyCall.json @@ -0,0 +1,92 @@ +{ + "RevertPrefoundEmptyCall" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x02b8feb0", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x28d138", + "currentTimestamp" : "0x01", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "7ded03faa6a98d0e873172b3b0a346b6651730a957883ffd4e38cbc0c2cc7923", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "EIP158" : [ + { + "hash" : "197c27f55074d15725bf77c4d8e87efdd1229bb3857541ee86009870d453d0e2", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Frontier" : [ + { + "hash" : "a6e1a58acac8171e0e4afe14904ada48877349bb40aa35a05593563e957713cc", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Homestead" : [ + { + "hash" : "a6e1a58acac8171e0e4afe14904ada48877349bb40aa35a05593563e957713cc", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ] + }, + "pre" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "0x00", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "a000000000000000000000000000000000000000" : { + "balance" : "0x01", + "code" : "0x60206000602060006000737db299e0885c85039f56fa504a13dd8ce8a56aa761c350f1600055600c600155", + "nonce" : "0x00", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "94000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "a000000000000000000000000000000000000000", + "value" : [ + "0" + ] + } + } +}
\ No newline at end of file diff --git a/GeneralStateTests/stRevertTest/RevertPrefoundEmptyCallOOG.json b/GeneralStateTests/stRevertTest/RevertPrefoundEmptyCallOOG.json new file mode 100644 index 000000000..82483c682 --- /dev/null +++ b/GeneralStateTests/stRevertTest/RevertPrefoundEmptyCallOOG.json @@ -0,0 +1,92 @@ +{ + "RevertPrefoundEmptyCallOOG" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x02b8feb0", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x28d138", + "currentTimestamp" : "0x01", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "EIP150" : [ + { + "hash" : "b14bde7808a9c984b3ec3e9826e246e3318a9f911db888e6c64486b92354d5a3", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "EIP158" : [ + { + "hash" : "b14bde7808a9c984b3ec3e9826e246e3318a9f911db888e6c64486b92354d5a3", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Frontier" : [ + { + "hash" : "b14bde7808a9c984b3ec3e9826e246e3318a9f911db888e6c64486b92354d5a3", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ], + "Homestead" : [ + { + "hash" : "b14bde7808a9c984b3ec3e9826e246e3318a9f911db888e6c64486b92354d5a3", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + } + } + ] + }, + "pre" : { + "7db299e0885c85039f56fa504a13dd8ce8a56aa7" : { + "balance" : "0x00", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "a000000000000000000000000000000000000000" : { + "balance" : "0x01", + "code" : "0x60206000602060006000737db299e0885c85039f56fa504a13dd8ce8a56aa761c350f1600055600c600155600c600255", + "nonce" : "0x00", + "storage" : { + } + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "" + ], + "gasLimit" : [ + "63000" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "a000000000000000000000000000000000000000", + "value" : [ + "0" + ] + } + } +}
\ No newline at end of file |