From 7b57db70b7ee1fa4a4e329cb9cb952fa2b79ec19 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Fri, 31 Aug 2018 17:06:21 +0300 Subject: Suicide in create2 tests --- ...tractSuicideDuringInit_ThenStoreThenReturn.json | 70 +++++++++ GeneralStateTests/stCreate2/CREATE2_Suicide.json | 166 +++++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 GeneralStateTests/stCreate2/CREATE2_ContractSuicideDuringInit_ThenStoreThenReturn.json create mode 100644 GeneralStateTests/stCreate2/CREATE2_Suicide.json (limited to 'GeneralStateTests/stCreate2') diff --git a/GeneralStateTests/stCreate2/CREATE2_ContractSuicideDuringInit_ThenStoreThenReturn.json b/GeneralStateTests/stCreate2/CREATE2_ContractSuicideDuringInit_ThenStoreThenReturn.json new file mode 100644 index 000000000..53312e816 --- /dev/null +++ b/GeneralStateTests/stCreate2/CREATE2_ContractSuicideDuringInit_ThenStoreThenReturn.json @@ -0,0 +1,70 @@ +{ + "CREATE2_ContractSuicideDuringInit_ThenStoreThenReturn" : { + "_info" : { + "comment" : "", + "filledwith" : "testeth 1.5.0.dev2+commit.9e5287d0.dirty", + "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreate2/CREATE2_ContractSuicideDuringInit_ThenStoreThenReturnFiller.json", + "sourceHash" : "f93cbbaca63e4420529fff453a69d9120561cc1a18cf5490243663201113a7a4" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Constantinople" : [ + { + "hash" : "0x04213fc7b20b8bd0c669a55f191666af9be925d769900d026677ec722882836b", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x6020600060006000600173c94f5374fce5edbc8e2a8697c15331677e6ebf0b620249f0f150600051600155", + "nonce" : "0x00", + "storage" : { + } + }, + "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x746d64600c6000556000526005601bf36000526001ff60005260006015600b6001f550600b600055600e6012f3", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x" + ], + "gasLimit" : [ + "0x0927c0" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0x0a" + ] + } + } +} \ No newline at end of file diff --git a/GeneralStateTests/stCreate2/CREATE2_Suicide.json b/GeneralStateTests/stCreate2/CREATE2_Suicide.json new file mode 100644 index 000000000..4719f6faf --- /dev/null +++ b/GeneralStateTests/stCreate2/CREATE2_Suicide.json @@ -0,0 +1,166 @@ +{ + "CREATE2_Suicide" : { + "_info" : { + "comment" : "CREATE2 suicide with/without value, CREATE2 sucide to itself + this cases during init of the CREATE2", + "filledwith" : "testeth 1.5.0.dev2+commit.c823095e.dirty", + "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreate2/CREATE2_SuicideFiller.json", + "sourceHash" : "25854699b8e1359df94c460ce2015f083f7fd1c10404f88358a43faffff3ae85" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Constantinople" : [ + { + "hash" : "0xd07cda66de13eeef4a589e41663b1015c1cfe111c29f9982ffcc1fb370df96bb", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x03750b98e2d7128ed71148fe4a61281026247db056a33b1ea32fd1d72031aa7c", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x770988cbedef2c7ace5ddccbc796a310b59ec3baf5ee96ad294053b9e6e1a89d", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x0f99c5f9d2a1722410f16869dee10893aedee282273527450a6fdec19e6967fb", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x01d00dc5243bfcb575f6ad378920e7ee050ddb20ae8d0ebcd7ab4ac884ebb5af", + "indexes" : { + "data" : 4, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x844cd5a1ea600739a2d1d45d5022a8a372b20be5235d71e099c942d26b16aca9", + "indexes" : { + "data" : 5, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x61f095cec4c9634fa7bfecf884d1fe4b282ab3739d25fecf62c8dc51bbb2773a", + "indexes" : { + "data" : 6, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x838f256a548b55dbbdd2b818ea4412b43b8ffe026f453b7582a3cfddac42be92", + "indexes" : { + "data" : 7, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x19a61b3c7efacebedc3bbae1df5d05e4f07807f383a9884b9bd2544eaa440715", + "indexes" : { + "data" : 8, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0xec7ee17cf96f4c4f59d10ce7d2dd5ae84ec77de07e7859d9bab1820ee0116cb1", + "indexes" : { + "data" : 9, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x2d8d4ec0676ce0de20336f1979d84b59031e8296ae8678d49d51b7b4172481ca", + "indexes" : { + "data" : 10, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x483308e3ece7c13c6d7676b922160f0ec1076ae33c9d619713a4344818e6790f", + "indexes" : { + "data" : 11, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "0x6130ff6000526002601ef3", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x626001ff60005260006003601d6000f5", + "0x6b626001ff6000526003601df36000526000600c60146000f55060006000600060006000735649527a8464a86cae579719d347065f6eb27279620249f0f1", + "0x626001ff60005260006003601d6001f5", + "0x6b626001ff6000526003601df36000526000600c60146001f55060006000600060006000735649527a8464a86cae579719d347065f6eb27279620249f0f1", + "0x6130ff60005260006002601e6000f5", + "0x6a6130ff6000526002601ef36000526000600b60156000f55060006000600060006000736cd0e5133771823da00d4cb545ec8cdab0e38203620249f0f1", + "0x6130ff60005260006002601e6001f5", + "0x6a6130ff6000526002601ef36000526000600b60156001f55060006000600060006000736cd0e5133771823da00d4cb545ec8cdab0e38203620249f0f1", + "0x6b626001ff6000526003601df36000526000600c60146000f5506000600060006000735649527a8464a86cae579719d347065f6eb27279620249f0fa", + "0x6b626001ff6000526003601df36000526000600c60146001f5506000600060006000735649527a8464a86cae579719d347065f6eb27279620249f0fa", + "0x6a6130ff6000526002601ef36000526000600b60156000f5506000600060006000736cd0e5133771823da00d4cb545ec8cdab0e38203620249f0fa", + "0x6a6130ff6000526002601ef36000526000600b60156001f5506000600060006000736cd0e5133771823da00d4cb545ec8cdab0e38203620249f0fa" + ], + "gasLimit" : [ + "0x0927c0" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "0x0a" + ] + } + } +} \ No newline at end of file -- cgit