aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-07-06 20:29:44 +0800
committerDimitry <dimitry@ethereum.org>2018-07-06 20:29:44 +0800
commit3b8723eff8edc18e80a4610066847891ab61980a (patch)
tree579d07453ce2f25e057101c21e48fedaccaa3b6e
parentaa820ad89b8dfe378d1ce74ed8f3f79ee94bd668 (diff)
downloaddexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.tar
dexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.tar.gz
dexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.tar.bz2
dexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.tar.lz
dexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.tar.xz
dexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.tar.zst
dexon-tests-3b8723eff8edc18e80a4610066847891ab61980a.zip
check returndatasize after failing create
-rw-r--r--BlockchainTests/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0.json216
-rw-r--r--GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize.json74
-rw-r--r--src/BlockchainTestsFiller/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0Filler.json84
-rw-r--r--src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndataSizeFiller.json67
4 files changed, 441 insertions, 0 deletions
diff --git a/BlockchainTests/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0.json b/BlockchainTests/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0.json
new file mode 100644
index 000000000..1fb296572
--- /dev/null
+++ b/BlockchainTests/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0.json
@@ -0,0 +1,216 @@
+{
+ "CreateOOGafterInitCodeReturndataSize_d0g0v0_Byzantium" : {
+ "_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/BlockchainTestsFiller/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0Filler.json",
+ "sourceHash" : "1659ad9f40889331e48a972e1e3c3684c67077acc234e7a7440acff328ec5543"
+ },
+ "blocks" : [
+ {
+ "blockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "difficulty" : "0x020000",
+ "extraData" : "",
+ "gasLimit" : "0x989680",
+ "gasUsed" : "0xd700",
+ "hash" : "0x20670b251268ed0c2081383c4056b362675a6abb29efd4edb5229a6c7d98d4ab",
+ "mixHash" : "0x43e1fde5581a8f775ad2bf88d7b24b12710c6cd7b9a89219f284b0c1a9f5f052",
+ "nonce" : "0xc02a85d48f2057be",
+ "number" : "0x01",
+ "parentHash" : "0xc5b5d2662ec59c3e128e1cc7c31524c453399b191f88974d0050f15797d1a58b",
+ "receiptTrie" : "0xfcdac727dc260882d90dc117234fe2e3c5c08b0353b7aa256bb73ef2a9f50eb3",
+ "stateRoot" : "0x21dd77785ee0ebfe69a3bed87a1a5548d32d6c3f290fedf8a52a88536ff75526",
+ "timestamp" : "0x03e8",
+ "transactionsTrie" : "0x38fb65926470d792dd2742e0d2323ad32fc3f334c32ff4d5c55d6832029b8f22",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "rlp" : "0xf9025ef901f7a0c5b5d2662ec59c3e128e1cc7c31524c453399b191f88974d0050f15797d1a58ba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa021dd77785ee0ebfe69a3bed87a1a5548d32d6c3f290fedf8a52a88536ff75526a038fb65926470d792dd2742e0d2323ad32fc3f334c32ff4d5c55d6832029b8f22a0fcdac727dc260882d90dc117234fe2e3c5c08b0353b7aa256bb73ef2a9f50eb3b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398968082d7008203e880a043e1fde5581a8f775ad2bf88d7b24b12710c6cd7b9a89219f284b0c1a9f5f05288c02a85d48f2057bef861f85f800182d70e94b94f5374fce5edbc8e2a8697c15331677e6ebf0b01801ba07529ad747ccaac2ef9598a125b4d41f3e2f487ae4636838e8b37ee24b97d5e3aa02441844ea0a26e310920f6130502d08e27d0fe7c0c7afc6eda91daf762a3fcc5c0",
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0xd70e",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "r" : "0x7529ad747ccaac2ef9598a125b4d41f3e2f487ae4636838e8b37ee24b97d5e3a",
+ "s" : "0x2441844ea0a26e310920f6130502d08e27d0fe7c0c7afc6eda91daf762a3fcc5",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "v" : "0x1b",
+ "value" : "0x01"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "difficulty" : "0x020000",
+ "extraData" : "0x42",
+ "gasLimit" : "0x989680",
+ "gasUsed" : "0x00",
+ "hash" : "0xc5b5d2662ec59c3e128e1cc7c31524c453399b191f88974d0050f15797d1a58b",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0x00",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0x57fcccb86c7181f2c0f29d5b1505fcde798d1eaf5113017c4c533da170301423",
+ "timestamp" : "0x03b6",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa057fcccb86c7181f2c0f29d5b1505fcde798d1eaf5113017c4c533da170301423a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
+ "lastblockhash" : "0x20670b251268ed0c2081383c4056b362675a6abb29efd4edb5229a6c7d98d4ab",
+ "network" : "Byzantium",
+ "postState" : {
+ "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "0x29a2241af62cd700",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a438ff",
+ "code" : "",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x01",
+ "code" : "0x726960016001556001600255600052600a6016f36000526013600d6000f0503d60020a",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x726960016001556001600255600052600a6016f36000526013600d6000f0503d60020a",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ }
+ },
+ "CreateOOGafterInitCodeReturndataSize_d0g0v0_Constantinople" : {
+ "_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/BlockchainTestsFiller/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0Filler.json",
+ "sourceHash" : "1659ad9f40889331e48a972e1e3c3684c67077acc234e7a7440acff328ec5543"
+ },
+ "blocks" : [
+ {
+ "blockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "difficulty" : "0x020000",
+ "extraData" : "",
+ "gasLimit" : "0x989680",
+ "gasUsed" : "0xd700",
+ "hash" : "0x894b6f5c161d03d99969b7253af9b71916965ced9eead07ad4d230bd1f58ce92",
+ "mixHash" : "0x783e5a7000643422147a22a40da13c8211ea288da0be219d3b19c83a139d5526",
+ "nonce" : "0x77093a6aba975bf9",
+ "number" : "0x01",
+ "parentHash" : "0xc5b5d2662ec59c3e128e1cc7c31524c453399b191f88974d0050f15797d1a58b",
+ "receiptTrie" : "0xfcdac727dc260882d90dc117234fe2e3c5c08b0353b7aa256bb73ef2a9f50eb3",
+ "stateRoot" : "0x21dd77785ee0ebfe69a3bed87a1a5548d32d6c3f290fedf8a52a88536ff75526",
+ "timestamp" : "0x03e8",
+ "transactionsTrie" : "0x38fb65926470d792dd2742e0d2323ad32fc3f334c32ff4d5c55d6832029b8f22",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "rlp" : "0xf9025ef901f7a0c5b5d2662ec59c3e128e1cc7c31524c453399b191f88974d0050f15797d1a58ba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa021dd77785ee0ebfe69a3bed87a1a5548d32d6c3f290fedf8a52a88536ff75526a038fb65926470d792dd2742e0d2323ad32fc3f334c32ff4d5c55d6832029b8f22a0fcdac727dc260882d90dc117234fe2e3c5c08b0353b7aa256bb73ef2a9f50eb3b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398968082d7008203e880a0783e5a7000643422147a22a40da13c8211ea288da0be219d3b19c83a139d55268877093a6aba975bf9f861f85f800182d70e94b94f5374fce5edbc8e2a8697c15331677e6ebf0b01801ba07529ad747ccaac2ef9598a125b4d41f3e2f487ae4636838e8b37ee24b97d5e3aa02441844ea0a26e310920f6130502d08e27d0fe7c0c7afc6eda91daf762a3fcc5c0",
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0xd70e",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "r" : "0x7529ad747ccaac2ef9598a125b4d41f3e2f487ae4636838e8b37ee24b97d5e3a",
+ "s" : "0x2441844ea0a26e310920f6130502d08e27d0fe7c0c7afc6eda91daf762a3fcc5",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "v" : "0x1b",
+ "value" : "0x01"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "difficulty" : "0x020000",
+ "extraData" : "0x42",
+ "gasLimit" : "0x989680",
+ "gasUsed" : "0x00",
+ "hash" : "0xc5b5d2662ec59c3e128e1cc7c31524c453399b191f88974d0050f15797d1a58b",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0x00",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0x57fcccb86c7181f2c0f29d5b1505fcde798d1eaf5113017c4c533da170301423",
+ "timestamp" : "0x03b6",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa057fcccb86c7181f2c0f29d5b1505fcde798d1eaf5113017c4c533da170301423a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
+ "lastblockhash" : "0x894b6f5c161d03d99969b7253af9b71916965ced9eead07ad4d230bd1f58ce92",
+ "network" : "Constantinople",
+ "postState" : {
+ "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "0x29a2241af62cd700",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a438ff",
+ "code" : "",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x01",
+ "code" : "0x726960016001556001600255600052600a6016f36000526013600d6000f0503d60020a",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x726960016001556001600255600052600a6016f36000526013600d6000f0503d60020a",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ }
+ }
+} \ 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/src/BlockchainTestsFiller/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0Filler.json
new file mode 100644
index 000000000..5e2eda62d
--- /dev/null
+++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreateTest/CreateOOGafterInitCodeReturndataSize_d0g0v0Filler.json
@@ -0,0 +1,84 @@
+{
+ "CreateOOGafterInitCodeReturndataSize_d0g0v0" : {
+ "blocks" : [
+ {
+ "blockHeaderPremine" : {
+ "difficulty" : "0x020000",
+ "gasLimit" : "0x989680",
+ "timestamp" : "0x03e8",
+ "updatePoW" : "1"
+ },
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0xd70e",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "r" : "0x7529ad747ccaac2ef9598a125b4d41f3e2f487ae4636838e8b37ee24b97d5e3a",
+ "s" : "0x2441844ea0a26e310920f6130502d08e27d0fe7c0c7afc6eda91daf762a3fcc5",
+ "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "v" : "0x1b",
+ "value" : "0x01"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "expect" : [
+ {
+ "network" : "Byzantium",
+ "result" : {
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x01"
+ },
+ "0xf1ecf98489fa9ed60a664fc4998db699cfa39d40" : {
+ }
+ }
+ },
+ {
+ "network" : "Constantinople",
+ "result" : {
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x01"
+ },
+ "0xf1ecf98489fa9ed60a664fc4998db699cfa39d40" : {
+ }
+ }
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "difficulty" : "131072",
+ "extraData" : "0x42",
+ "gasLimit" : "0x989680",
+ "gasUsed" : "0",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a",
+ "timestamp" : "0x03b6",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "pre" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xe8d4a51000",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x00",
+ "code" : "0x726960016001556001600255600052600a6016f36000526013600d6000f0503d60020a",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndataSizeFiller.json b/src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndataSizeFiller.json
new file mode 100644
index 000000000..8014a8f89
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stCreateTest/CreateOOGafterInitCodeReturndataSizeFiller.json
@@ -0,0 +1,67 @@
+{
+ "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"
+ },
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "10000000",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : 0,
+ "value" : -1
+ },
+ "network" : [">=Byzantium"],
+ "result" : {
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1"
+ },
+ "0xf1ecf98489fa9ed60a664fc4998db699cfa39d40" : {
+ "shouldnotexist" : "1"
+ }
+ }
+ }
+ ],
+ "pre" :
+ {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000",
+ "code" : "",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0",
+ "nonce" : "0",
+ "//code" : "{ (MSTORE 0 0x60016001556001600255) (RETURN 22 10) }",
+ "//code" : "{ (SSTORE 1 1) (SSTORE 2 1) } ",
+ "code" : "{ (MSTORE 0 0x6960016001556001600255600052600a6016f3) (CREATE 0 13 19) (EXP 2 (RETURNDATASIZE)) }",
+ "storage": {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "55054"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : [
+ "1"
+ ]
+ }
+ }
+}