aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2018-07-07 03:38:20 +0800
committerGitHub <noreply@github.com>2018-07-07 03:38:20 +0800
commitb1ec6cea390b358249b949d08db4ec609d25b4b4 (patch)
tree579d07453ce2f25e057101c21e48fedaccaa3b6e /GeneralStateTests
parent428842e9731b7065366dcd7829bbfc0f9e1135fa (diff)
parent3b8723eff8edc18e80a4610066847891ab61980a (diff)
downloaddexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.tar
dexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.tar.gz
dexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.tar.bz2
dexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.tar.lz
dexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.tar.xz
dexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.tar.zst
dexon-tests-b1ec6cea390b358249b949d08db4ec609d25b4b4.zip
Merge pull request #475 from ethereum/create
create fails on deployment + returndatasize
Diffstat (limited to 'GeneralStateTests')
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCode.json93
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata.json93
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata2.json93
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata3.json81
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize.json74
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert.json81
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert2.json81
7 files changed, 596 insertions, 0 deletions
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCode.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCode.json
new file mode 100644
index 000000000..e20063f23
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCode.json
@@ -0,0 +1,93 @@
+{
+ "CreateOOGafterInitCode" : {
+ "_info" : {
+ "comment" : "",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeFiller.json",
+ "sourceHash" : "f648b4cba01e81ed7b07af91e11a6b18f3d08ad22120c311acfe29264065fef9"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x70f3a9f7478198ccdbeb5d377f2ba3fd278915269e433752ac367ca14131fdd9",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x271549a05d95290b71017c7365f600084a2e589263e67eccafcd985454a3005a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x70f3a9f7478198ccdbeb5d377f2ba3fd278915269e433752ac367ca14131fdd9",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x271549a05d95290b71017c7365f600084a2e589263e67eccafcd985454a3005a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6d6460016001556000526005601bf3600052600e60126000f0",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0xd2f0",
+ "0xd6d8"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata.json
new file mode 100644
index 000000000..9bdc90a33
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata.json
@@ -0,0 +1,93 @@
+{
+ "CreateOOGafterInitCodeReturndata" : {
+ "_info" : {
+ "comment" : "Call RETURNDATASIZE and RETURNDATACOPY after CREATE deploy a contract",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndataFiller.json",
+ "sourceHash" : "2ae593e4e941a20f5c5b845623a7edd946e99d6225af19fd82b99ee5290abc90"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0xc2cd07ddb37f96bbabe97cf662123f41712f596d7b36be9262e566295a0b878b",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x5f315c0b6aec9ea51fcb832afc61306fb7fa9b1ed65d22f25fed1bbe6ef662cd",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0xc2cd07ddb37f96bbabe97cf662123f41712f596d7b36be9262e566295a0b878b",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0x5f315c0b6aec9ea51fcb832afc61306fb7fa9b1ed65d22f25fed1bbe6ef662cd",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6d6460016001556000526005601bf3600052600e60126000f0503d6001556020600060003e600051600255",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0xd2f0",
+ "0x017318"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata2.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata2.json
new file mode 100644
index 000000000..275f52299
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata2.json
@@ -0,0 +1,93 @@
+{
+ "CreateOOGafterInitCodeReturndata2" : {
+ "_info" : {
+ "comment" : "Call RETURNDATASIZE and RETURNDATACOPY after CREATE deploy a contract. correct returndata copy.",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndata2Filler.json",
+ "sourceHash" : "6b38f2026571bfd4d42e78254244465329573d5a50ba09286a6ed621b7abef9d"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x49145bbbef7058e2b394c784f1f49e161895b3ddf2810d7f711228d17c1cb3f4",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xc32d4f6f524abad329fb760ec3b7151cc73db47b194f550ac08a08729abe8446",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x49145bbbef7058e2b394c784f1f49e161895b3ddf2810d7f711228d17c1cb3f4",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ {
+ "hash" : "0xc32d4f6f524abad329fb760ec3b7151cc73db47b194f550ac08a08729abe8446",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6d6460016001556000526005601bf3600052600e60126000f0503d6001556000600060003e600051600255",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0xd2f0",
+ "0x017318"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata3.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata3.json
new file mode 100644
index 000000000..47957fc37
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndata3.json
@@ -0,0 +1,81 @@
+{
+ "CreateOOGafterInitCodeReturndata3" : {
+ "_info" : {
+ "comment" : "Calls a contract that runs CREATE which deploy a code. then OOG happens upon deployment of the actual code. check the RETURN data buffer in initial contract",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndata3Filler.json",
+ "sourceHash" : "a6e6fd73748768e3ceed88ae0704f7ab7bd79a32ef145f80e557536aa3e2b5ce"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x372c4f631ee4522dc20a85f48d9ab2e0faff8feef0621944228378c76a388746",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x372c4f631ee4522dc20a85f48d9ab2e0faff8feef0621944228378c76a388746",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6d6460016001556000526005601bf3600052600e60126000f0",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6020600060006000600073b94f5374fce5edbc8e2a8697c15331677e6ebf0b5af2506020600060003e600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0xd6d8"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize.json
new file mode 100644
index 000000000..aae775633
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize.json
@@ -0,0 +1,74 @@
+{
+ "CreateOOGafterInitCodeReturndataSize" : {
+ "_info" : {
+ "comment" : "Calls a contract that runs CREATE which deploy a code. then OOG happens upon deployment of the actual code. check the RETURNDATASIZE after create. fails with OOG if RETURNDATASIZE != 0",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndataSizeFiller.json",
+ "sourceHash" : "417b25215044dde14303698232194ca655d7e8279eab519794c728f8fbf94e9d"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x75e1af250ad929c968eb25a2c14d174e4acdab0c7c61166684a8cae06a5a3456",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x75e1af250ad929c968eb25a2c14d174e4acdab0c7c61166684a8cae06a5a3456",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x726960016001556001600255600052600a6016f36000526013600d6000f0503d60020a",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0xd70e"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x01"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert.json
new file mode 100644
index 000000000..fdfc1bd28
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert.json
@@ -0,0 +1,81 @@
+{
+ "CreateOOGafterInitCodeRevert" : {
+ "_info" : {
+ "comment" : "Calls a contract that runs CREATE which deploy a code. then after deployment and exiting from CREATE a REVERT is called. check the REVERT data in this case equal to RETURN value of CREATE",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeRevertFiller.json",
+ "sourceHash" : "9e217f32b878fd7b57bef35efd31ec5ea25c2e93980a1499b4986b0eca7893b8"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0x19d54b44c3ec1cd388137064548393eb40d910739a2ed5cffa901d2a1ecabbd2",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0x19d54b44c3ec1cd388137064548393eb40d910739a2ed5cffa901d2a1ecabbd2",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6d6460016001556000526005601bf3600052600e60126000f05060206000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6020600060006000600073b94f5374fce5edbc8e2a8697c15331677e6ebf0b5af150600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x0124f8"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert2.json b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert2.json
new file mode 100644
index 000000000..acd6d1afd
--- /dev/null
+++ b/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeRevert2.json
@@ -0,0 +1,81 @@
+{
+ "CreateOOGafterInitCodeRevert2" : {
+ "_info" : {
+ "comment" : "Calls a contract that runs CREATE which deploy a code. then after deployment and exiting from CREATE a REVERT is called. check the REVERT data in this case equal to RETURN value of CREATE. CREATE fails due to the deployment cost.",
+ "filledwith" : "testeth 1.4.0.dev1-71+commit.d4c00a53.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.6.30+commit.e289c361.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeRevert2Filler.json",
+ "sourceHash" : "5da53239441d2b26b5bab534410d6205dabfdedf15d0c7ed2e31a89026bcc5ec"
+ },
+ "env" : {
+ "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Byzantium" : [
+ {
+ "hash" : "0xfd157c52348892cc178af9f65adbbb26fe6f4baef16005e8903dc7190baa1ead",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ],
+ "Constantinople" : [
+ {
+ "hash" : "0xfd157c52348892cc178af9f65adbbb26fe6f4baef16005e8903dc7190baa1ead",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6d6460016001556000526005601bf3600052600e60126000f05060206000fd",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x6020600060006000600073b94f5374fce5edbc8e2a8697c15331677e6ebf0b6180e8f150600051600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x0124f8"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file