diff --git a/BlockchainTests/GeneralStateTests/stCreateTest/CREATE2_CallData.json b/BlockchainTests/GeneralStateTests/stCreateTest/CREATE2_CallData.json new file mode 100644 index 00000000000..e2e8c32308b --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stCreateTest/CREATE2_CallData.json @@ -0,0 +1,589 @@ +{ + "CREATE2_CallData_d0g0v0_Berlin" : { + "_info" : { + "comment" : "Test if calldata is empty in initcode context.\n", + "filling-rpc-server" : "evm version 1.13.5-unstable-233db64c-20231027", + "filling-tool-version" : "retesteth-0.3.1-cancun+commit.c768ec72.Linux.g++", + "generatedTestHash" : "1d8a65b15627ce3495ac332bb7a17a6438f8a6e1354c7315f52f39586c0de5a3", + "lllcversion" : "Version: 0.5.14-develop.2023.7.11+commit.c58ab2c6.mod.Linux.g++", + "solidity" : "Version: 0.8.21+commit.d9974bed.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml", + "sourceHash" : "c1035c00725926ec695844c114034e5ff446815d99ad96e43db31a016a54890b" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x016041", + "hash" : "0xe9f5c84d346c68f326b523a0702f66efdb573cb80322a07b37951b004c069adc", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x44a52043e4e860a70c08f3110395aeb7e6db69d3112c05ba93ea1b1dcf42470a", + "receiptTrie" : "0x090e30b6dd277444cb1897c33a6a054a41930aa3b62449c816be0af5d6c9fbc2", + "stateRoot" : "0xb55866f30d074076ad4369045e4e11798becb5b76cd7711820a73836fdaf519b", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x1825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90260f901f8a044a52043e4e860a70c08f3110395aeb7e6db69d3112c05ba93ea1b1dcf42470aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0b55866f30d074076ad4369045e4e11798becb5b76cd7711820a73836fdaf519ba01825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7a0090e30b6dd277444cb1897c33a6a054a41930aa3b62449c816be0af5d6c9fbc2b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001830f4240830160418203e800a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f862f860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x0186a0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xbe1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106", + "s" : "0x7772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0x000000000000000000000000000000000c5ea705", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x01", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x00", + "hash" : "0x44a52043e4e860a70c08f3110395aeb7e6db69d3112c05ba93ea1b1dcf42470a", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901f5f901f0a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000180830f4240808000a00000000000000000000000000000000000000000000000000000000000000000880000000000000000c0c0", + "lastblockhash" : "0xe9f5c84d346c68f326b523a0702f66efdb573cb80322a07b37951b004c069adc", + "network" : "Berlin", + "postState" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" + } + }, + "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" : { + "balance" : "0x00", + "code" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x1bc1c85a5f424000", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3107a4000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "CREATE2_CallData_d0g0v0_Cancun" : { + "_info" : { + "comment" : "Test if calldata is empty in initcode context.\n", + "filling-rpc-server" : "evm version 1.13.5-unstable-233db64c-20231027", + "filling-tool-version" : "retesteth-0.3.1-cancun+commit.c768ec72.Linux.g++", + "generatedTestHash" : "83609985a5cd0a6ea1b27b3a7f9ec0975fc3697cd1184653a943eeba6de7f352", + "lllcversion" : "Version: 0.5.14-develop.2023.7.11+commit.c58ab2c6.mod.Linux.g++", + "solidity" : "Version: 0.8.21+commit.d9974bed.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml", + "sourceHash" : "c1035c00725926ec695844c114034e5ff446815d99ad96e43db31a016a54890b" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "blobGasUsed" : "0x00", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x00", + "excessBlobGas" : "0x00", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x016043", + "hash" : "0x6aca411418a27499f9842979546c32037edb39e583d0f0fc3d6a4a75c99310ec", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentBeaconBlockRoot" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "parentHash" : "0x855a97558bd5b29d7a6a61e273f247158de631caa9891e4c85e6b58b62f48d6a", + "receiptTrie" : "0x26222c5b88a4cf5becfaf480e561b570a778527a448aa8bae9a9de1842fc3843", + "stateRoot" : "0xa75c23430d770d67e8995232504ff9bea92ba264ec4004a8b4c6dd8880b09c2e", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x1825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "withdrawalsRoot" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "rlp" : "0xf902a3f9023aa0855a97558bd5b29d7a6a61e273f247158de631caa9891e4c85e6b58b62f48d6aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0a75c23430d770d67e8995232504ff9bea92ba264ec4004a8b4c6dd8880b09c2ea01825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7a026222c5b88a4cf5becfaf480e561b570a778527a448aa8bae9a9de1842fc3843b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008001830f4240830160438203e800a000000000000000000000000000000000000000000000000000000000000000018800000000000000000aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b4218080a00000000000000000000000000000000000000000000000000000000000000000f862f860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245c0c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x0186a0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xbe1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106", + "s" : "0x7772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0x000000000000000000000000000000000c5ea705", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ], + "withdrawals" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "blobGasUsed" : "0x00", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x00", + "excessBlobGas" : "0x00", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x00", + "hash" : "0x855a97558bd5b29d7a6a61e273f247158de631caa9891e4c85e6b58b62f48d6a", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentBeaconBlockRoot" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "withdrawalsRoot" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "genesisRLP" : "0xf9023bf90235a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008080830f4240808000a000000000000000000000000000000000000000000000000000000000000000018800000000000000000ba056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b4218080a00000000000000000000000000000000000000000000000000000000000000000c0c0c0", + "lastblockhash" : "0x6aca411418a27499f9842979546c32037edb39e583d0f0fc3d6a4a75c99310ec", + "network" : "Cancun", + "postState" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" + } + }, + "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" : { + "balance" : "0x00", + "code" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3106c7d62", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3107a4000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "CREATE2_CallData_d0g0v0_London" : { + "_info" : { + "comment" : "Test if calldata is empty in initcode context.\n", + "filling-rpc-server" : "evm version 1.13.5-unstable-233db64c-20231027", + "filling-tool-version" : "retesteth-0.3.1-cancun+commit.c768ec72.Linux.g++", + "generatedTestHash" : "71d734ac069ddbd731e6e36173532386d6b1ecc273ef4234bf57393272036b48", + "lllcversion" : "Version: 0.5.14-develop.2023.7.11+commit.c58ab2c6.mod.Linux.g++", + "solidity" : "Version: 0.8.21+commit.d9974bed.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml", + "sourceHash" : "c1035c00725926ec695844c114034e5ff446815d99ad96e43db31a016a54890b" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x016041", + "hash" : "0x86f953540161f1ab739258a82e6d1fcfb7234c63d9be49c514bfade304910fbf", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x2a12d49a949514dc5f7dc48d2970f0f8e39bd0c7e209c2b6a8fb53ef00a4f9c0", + "receiptTrie" : "0x090e30b6dd277444cb1897c33a6a054a41930aa3b62449c816be0af5d6c9fbc2", + "stateRoot" : "0x92a4447cf04f1280169ea7bf83d3b98f7667d0393cf44bc8a8a55d790a71f22d", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x1825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90261f901f9a02a12d49a949514dc5f7dc48d2970f0f8e39bd0c7e209c2b6a8fb53ef00a4f9c0a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba092a4447cf04f1280169ea7bf83d3b98f7667d0393cf44bc8a8a55d790a71f22da01825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7a0090e30b6dd277444cb1897c33a6a054a41930aa3b62449c816be0af5d6c9fbc2b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001830f4240830160418203e800a000000000000000000000000000000000000000000000000000000000000000008800000000000000000af862f860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x0186a0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xbe1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106", + "s" : "0x7772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0x000000000000000000000000000000000c5ea705", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x01", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x00", + "hash" : "0x2a12d49a949514dc5f7dc48d2970f0f8e39bd0c7e209c2b6a8fb53ef00a4f9c0", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901f6f901f1a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000180830f4240808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000000bc0c0", + "lastblockhash" : "0x86f953540161f1ab739258a82e6d1fcfb7234c63d9be49c514bfade304910fbf", + "network" : "London", + "postState" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" + } + }, + "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" : { + "balance" : "0x00", + "code" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x1bc1c85a5f347d76", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3107a4000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "CREATE2_CallData_d0g0v0_Merge" : { + "_info" : { + "comment" : "Test if calldata is empty in initcode context.\n", + "filling-rpc-server" : "evm version 1.13.5-unstable-233db64c-20231027", + "filling-tool-version" : "retesteth-0.3.1-cancun+commit.c768ec72.Linux.g++", + "generatedTestHash" : "86aa0be1eef59e482d3e7029081c2f8db09efb8b0c6069bb1374e155b16a00d0", + "lllcversion" : "Version: 0.5.14-develop.2023.7.11+commit.c58ab2c6.mod.Linux.g++", + "solidity" : "Version: 0.8.21+commit.d9974bed.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml", + "sourceHash" : "c1035c00725926ec695844c114034e5ff446815d99ad96e43db31a016a54890b" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x00", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x016041", + "hash" : "0x017be11e819dc7040066df475eb362d43b199c4b3c55af52e57b88a3ddf04ed0", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xdcbda6c3ea7234caaa9a55808f62eedf238ccaaa543988c67dd21b915397f81d", + "receiptTrie" : "0x090e30b6dd277444cb1897c33a6a054a41930aa3b62449c816be0af5d6c9fbc2", + "stateRoot" : "0x34c88ec778b311dfd6ad5ee2bdbd98b5f5788ef00baccf42a3cc90a75fb20473", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x1825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf9025ef901f6a0dcbda6c3ea7234caaa9a55808f62eedf238ccaaa543988c67dd21b915397f81da01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba034c88ec778b311dfd6ad5ee2bdbd98b5f5788ef00baccf42a3cc90a75fb20473a01825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7a0090e30b6dd277444cb1897c33a6a054a41930aa3b62449c816be0af5d6c9fbc2b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008001830f4240830160418203e800a000000000000000000000000000000000000000000000000000000000000000018800000000000000000af862f860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x0186a0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xbe1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106", + "s" : "0x7772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0x000000000000000000000000000000000c5ea705", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x00", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x00", + "hash" : "0xdcbda6c3ea7234caaa9a55808f62eedf238ccaaa543988c67dd21b915397f81d", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901f6f901f1a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008080830f4240808000a000000000000000000000000000000000000000000000000000000000000000018800000000000000000bc0c0", + "lastblockhash" : "0x017be11e819dc7040066df475eb362d43b199c4b3c55af52e57b88a3ddf04ed0", + "network" : "Merge", + "postState" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" + } + }, + "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" : { + "balance" : "0x00", + "code" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3106c7d76", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3107a4000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "CREATE2_CallData_d0g0v0_Shanghai" : { + "_info" : { + "comment" : "Test if calldata is empty in initcode context.\n", + "filling-rpc-server" : "evm version 1.13.5-unstable-233db64c-20231027", + "filling-tool-version" : "retesteth-0.3.1-cancun+commit.c768ec72.Linux.g++", + "generatedTestHash" : "c46fd6bf72939613d05a22ecb434202c17e1f9cd6a85767ceb2176512e7768e3", + "lllcversion" : "Version: 0.5.14-develop.2023.7.11+commit.c58ab2c6.mod.Linux.g++", + "solidity" : "Version: 0.8.21+commit.d9974bed.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml", + "sourceHash" : "c1035c00725926ec695844c114034e5ff446815d99ad96e43db31a016a54890b" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x00", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x016043", + "hash" : "0xe33bc607f08c93d21a244418be6bf1941884c6131aee0bac3be047086bdd7c71", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xb8cd23c6b2f27f2bc205bb9d50c999959d44727fc516292438849e0e74ade6fa", + "receiptTrie" : "0x26222c5b88a4cf5becfaf480e561b570a778527a448aa8bae9a9de1842fc3843", + "stateRoot" : "0xa75c23430d770d67e8995232504ff9bea92ba264ec4004a8b4c6dd8880b09c2e", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x1825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "withdrawalsRoot" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "rlp" : "0xf90280f90217a0b8cd23c6b2f27f2bc205bb9d50c999959d44727fc516292438849e0e74ade6faa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0a75c23430d770d67e8995232504ff9bea92ba264ec4004a8b4c6dd8880b09c2ea01825885d9f86cd28f29a59495b9f9103fc99d61fa5663fd6171bee04e79d8df7a026222c5b88a4cf5becfaf480e561b570a778527a448aa8bae9a9de1842fc3843b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008001830f4240830160438203e800a000000000000000000000000000000000000000000000000000000000000000018800000000000000000aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421f862f860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245c0c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x0186a0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xbe1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106", + "s" : "0x7772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0x000000000000000000000000000000000c5ea705", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ], + "withdrawals" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "difficulty" : "0x00", + "extraData" : "0x00", + "gasLimit" : "0x0f4240", + "gasUsed" : "0x00", + "hash" : "0xb8cd23c6b2f27f2bc205bb9d50c999959d44727fc516292438849e0e74ade6fa", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "withdrawalsRoot" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" + }, + "genesisRLP" : "0xf90218f90212a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a94f5374fce5edbc8e2a8697c15331677e6ebf0ba0686b6e63dc4504fba83636a27c5c64086a45515874e0e331031b4f443016d9e4a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008080830f4240808000a000000000000000000000000000000000000000000000000000000000000000018800000000000000000ba056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421c0c0c0", + "lastblockhash" : "0xe33bc607f08c93d21a244418be6bf1941884c6131aee0bac3be047086bdd7c71", + "network" : "Shanghai", + "postState" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" + } + }, + "0x7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a" : { + "balance" : "0x00", + "code" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3106c7d62", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3107a4000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/GeneralStateTests/stCreateTest/CREATE2_CallData.json b/GeneralStateTests/stCreateTest/CREATE2_CallData.json new file mode 100644 index 00000000000..7e62febb40a --- /dev/null +++ b/GeneralStateTests/stCreateTest/CREATE2_CallData.json @@ -0,0 +1,120 @@ +{ + "CREATE2_CallData" : { + "_info" : { + "comment" : "Test if calldata is empty in initcode context.\n", + "filling-rpc-server" : "evm version 1.13.5-unstable-233db64c-20231027", + "filling-tool-version" : "retesteth-0.3.1-cancun+commit.c768ec72.Linux.g++", + "generatedTestHash" : "c1149c489eee6fd910dbaae02c069ebe8007e696cab3b1f4d8e9a406572db44d", + "lllcversion" : "Version: 0.5.14-develop.2023.7.11+commit.c58ab2c6.mod.Linux.g++", + "solidity" : "Version: 0.8.21+commit.d9974bed.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml", + "sourceHash" : "c1035c00725926ec695844c114034e5ff446815d99ad96e43db31a016a54890b" + }, + "env" : { + "currentBaseFee" : "0x0a", + "currentBeaconRoot" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "currentCoinbase" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "currentDifficulty" : "0x01", + "currentGasLimit" : "0x0f4240", + "currentNumber" : "0x01", + "currentRandom" : "0x0000000000000000000000000000000000000000000000000000000000000001", + "currentTimestamp" : "0x03e8", + "currentWithdrawalsRoot" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Berlin" : [ + { + "hash" : "0x6800e6dbce8fbb30e063a8ce163f606b6d863aa87e3ebb8f0a90352ed8e1dc02", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245" + } + ], + "Cancun" : [ + { + "hash" : "0xa75c23430d770d67e8995232504ff9bea92ba264ec4004a8b4c6dd8880b09c2e", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245" + } + ], + "London" : [ + { + "hash" : "0x34c88ec778b311dfd6ad5ee2bdbd98b5f5788ef00baccf42a3cc90a75fb20473", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245" + } + ], + "Merge" : [ + { + "hash" : "0x34c88ec778b311dfd6ad5ee2bdbd98b5f5788ef00baccf42a3cc90a75fb20473", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245" + } + ], + "Shanghai" : [ + { + "hash" : "0xa75c23430d770d67e8995232504ff9bea92ba264ec4004a8b4c6dd8880b09c2e", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf860800a830186a094000000000000000000000000000000000c5ea70580801ba0be1a87855d5fb33c626d3ffe010a72025f2e49bbdfea9990f7673e0accac0106a07772ddb064c02f526a94d0efbc15f386f98524e3d23a36400835a66121dde245" + } + ] + }, + "pre" : { + "0x000000000000000000000000000000000c5ea705" : { + "balance" : "0x00", + "code" : "0x6000601080601183398180f560005500fe600035600055604060008037596000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x5af3107a4000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x" + ], + "gasLimit" : [ + "0x0186a0" + ], + "gasPrice" : "0x0a", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0x000000000000000000000000000000000c5ea705", + "value" : [ + "0x00" + ] + } + } +} \ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml b/src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml new file mode 100644 index 00000000000..b031b4e9100 --- /dev/null +++ b/src/GeneralStateTestsFiller/stCreateTest/CREATE2_CallDataFiller.yml @@ -0,0 +1,60 @@ +CREATE2_CallData: + _info: + comment: | + Test if calldata is empty in initcode context. + env: + currentCoinbase: a94f5374fce5edbc8e2a8697c15331677e6ebf0b + currentDifficulty: 1 + currentGasLimit: 1000000 + currentNumber: 1 + currentTimestamp: 1000 + previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6 + pre: + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + nonce: 0 + balance: 100000000000000 + storage: { } + code: '' + + # Contract creator. + 000000000000000000000000000000000c5ea705: + nonce: 0 + balance: 0 + storage: { } + code: | + :yul berlin object "C" { + code { + let s := datasize("initcode") + let o := dataoffset("initcode") + codecopy(0, o, s) + let r := create2(0, 0, s, 0) + sstore(0, r) + stop() + } + + object "initcode" { + code { + sstore(0, calldataload(0)) + calldatacopy(0, 0, 64) + return(0, msize()) + } + } + } + + transaction: + data: [ '' ] + gasLimit: [ 100000 ] + gasPrice: 10 + nonce: 0 + secretKey: 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8 + to: 000000000000000000000000000000000c5ea705 + value: [ 0 ] + expect: + - network: + - ">=Berlin" + result: + 000000000000000000000000000000000c5ea705: + storage: + 0: 7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a + 7f8330ad7bc2afe0dffb2fdc76bbad8bc326296a: + code: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'