diff options
author | Dimitry <dimitry@ethereum.org> | 2018-07-03 22:54:46 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-07-03 22:54:46 +0800 |
commit | ca640329787e0eeedff6544039152bfaa0fdfcd1 (patch) | |
tree | ee389dd4e2482e7eed1dc364e1b21c2d1e29c429 | |
parent | 633f8182f96a3005c9846c44a0bd363f04a9f593 (diff) | |
download | dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.tar dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.tar.gz dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.tar.bz2 dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.tar.lz dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.tar.xz dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.tar.zst dexon-tests-ca640329787e0eeedff6544039152bfaa0fdfcd1.zip |
fill create failure tests
5 files changed, 441 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/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 |