aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2018-04-03 21:59:34 +0800
committerYoichi Hirai <i@yoichihirai.com>2018-04-03 21:59:34 +0800
commit741ebdb8f6379dee23e3fc99ea0031d75722c78a (patch)
tree9244129ed7d8cb80571df633eb6a00f9b550ffa1 /GeneralStateTests
parent7e3f85ed8242a5f10178b680f1f5b00ccc71141c (diff)
downloadtangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.tar
tangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.tar.gz
tangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.tar.bz2
tangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.tar.lz
tangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.tar.xz
tangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.tar.zst
tangerine-tests-741ebdb8f6379dee23e3fc99ea0031d75722c78a.zip
Fill RevertOnEmptyStack test
Diffstat (limited to 'GeneralStateTests')
-rw-r--r--GeneralStateTests/stRevertTest/RevertOnEmptyStack.json118
1 files changed, 118 insertions, 0 deletions
diff --git a/GeneralStateTests/stRevertTest/RevertOnEmptyStack.json b/GeneralStateTests/stRevertTest/RevertOnEmptyStack.json
new file mode 100644
index 000000000..899c4eae2
--- /dev/null
+++ b/GeneralStateTests/stRevertTest/RevertOnEmptyStack.json
@@ -0,0 +1,118 @@
+{
+ "RevertOnEmptyStack" : {
+ "_info" : {
+ "comment" : "Calling a runtime code that contains only a single `REVERT` should consume all gas.",
+ "filledwith" : "cpp-1.3.0+commit.e327dcb7.Linux.g++",
+ "lllcversion" : "Version: 0.4.22-develop.2018.3.16+commit.2b2527f3.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stRevertTest/RevertOnEmptyStackFiller.json",
+ "sourceHash" : "bc05b22e68c01b51c86c84cffe54fe37aaefbcd192dbaa8b54273283b0522f94"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x67e2e0be093bc8bdd0836b32bd23a4c93fc3f6d9a5501600661859e93b8f5429",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x67e2e0be093bc8bdd0836b32bd23a4c93fc3f6d9a5501600661859e93b8f5429",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP150" : [
+ {
+ "hash" : "0x67e2e0be093bc8bdd0836b32bd23a4c93fc3f6d9a5501600661859e93b8f5429",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "0x67e2e0be093bc8bdd0836b32bd23a4c93fc3f6d9a5501600661859e93b8f5429",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "0x67e2e0be093bc8bdd0836b32bd23a4c93fc3f6d9a5501600661859e93b8f5429",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "0x67e2e0be093bc8bdd0836b32bd23a4c93fc3f6d9a5501600661859e93b8f5429",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa000000000000000000000000000000000000000" : {
+ "balance" : "0x00",
+ "code" : "0xfd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x1e8480"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xa000000000000000000000000000000000000000",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file