diff options
author | Dimitry <dimitry@ethereum.org> | 2018-09-14 03:33:54 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-09-14 03:33:54 +0800 |
commit | ed0830e9a5348dac050dbf9cb788f980e4fb6059 (patch) | |
tree | 3e2beba771a1fb382902a38c01c9c2d1af00a1a3 /src | |
parent | 7f647b72947a011f1869c3895d359f07bf6a73b9 (diff) | |
download | tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.tar tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.tar.gz tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.tar.bz2 tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.tar.lz tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.tar.xz tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.tar.zst tangerine-tests-ed0830e9a5348dac050dbf9cb788f980e4fb6059.zip |
(RevertDepthCreateAddressCollision) for CREATE2
Diffstat (limited to 'src')
9 files changed, 886 insertions, 0 deletions
diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g0v0Filler.json new file mode 100644 index 000000000..ee8be109c --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g0v0Filler.json @@ -0,0 +1,90 @@ +{ + "RevertDepthCreateAddressCollision_d0g0v0" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000ea60", + "gasLimit" : "0x01adb0", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x52440d702c31ca78d1e89a9f5f0ee6554bda5a781b175ae21edf7594bd6cc7e9", + "s" : "0x52e53542b83c552eecd9afc95cab350d90c4b1f9ce536353e68fb96c06b69df1", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g0v1Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g0v1Filler.json new file mode 100644 index 000000000..857d2c8d0 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g0v1Filler.json @@ -0,0 +1,90 @@ +{ + "RevertDepthCreateAddressCollision_d0g0v1" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000ea60", + "gasLimit" : "0x01adb0", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x53df2851760e6b130457296ef1feee0cff28344931e86addf1268d94e3fa3c14", + "s" : "0x7480574e4c870f6562875a39d6a6931ef7ed2adb615879b8446c4d89bc6b4742", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g1v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g1v0Filler.json new file mode 100644 index 000000000..a6e450f00 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g1v0Filler.json @@ -0,0 +1,92 @@ +{ + "RevertDepthCreateAddressCollision_d0g1v0" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000ea60", + "gasLimit" : "0x027100", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x8b930a856a38429c61839f236a248a37597705b23d584f4c1bb1c801c05cb3", + "s" : "0x2e5d912c48763771022d94171cfd7ce27c3b35b9ad3aa0b959c40a52ef58dba2", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + "0x00" : "0x01", + "0x04" : "0x0c" + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g1v1Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g1v1Filler.json new file mode 100644 index 000000000..b3058bd2d --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d0g1v1Filler.json @@ -0,0 +1,92 @@ +{ + "RevertDepthCreateAddressCollision_d0g1v1" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000ea60", + "gasLimit" : "0x027100", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x3a430e0b34be1cfc72849704acc13cef0d5c0c8a3f3738c7c61147cadd42ec11", + "s" : "0x2605851d8e4ca49c3727910d011d6a7be5b84a58b339d8983a67cd38f77212f4", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + "0x00" : "0x01", + "0x04" : "0x0c" + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g0v0Filler.json new file mode 100644 index 000000000..ddf409ce9 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g0v0Filler.json @@ -0,0 +1,91 @@ +{ + "RevertDepthCreateAddressCollision_d1g0v0" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000001ea60", + "gasLimit" : "0x01adb0", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x76dbf27177d8c577beefbbe13c86b656b9c478d49dd912f99999ede610ce5659", + "s" : "0x1ba504ebbeb5930a9b553778f174f6d2846d9fd5aa025c6f1ae5ed4859a94e2e", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g0v1Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g0v1Filler.json new file mode 100644 index 000000000..c6ffca201 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g0v1Filler.json @@ -0,0 +1,91 @@ +{ + "RevertDepthCreateAddressCollision_d1g0v1" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000001ea60", + "gasLimit" : "0x01adb0", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xe5c26ec1126035eff78cf67da7ec945022a925eb9db2ad0367a726314dc7e775", + "s" : "0x795a6cdf8e39659503e04419d0a5bf64257be11813f4d60e36b51d9566c8602c", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g1v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g1v0Filler.json new file mode 100644 index 000000000..292d17432 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g1v0Filler.json @@ -0,0 +1,95 @@ +{ + "RevertDepthCreateAddressCollision_d1g1v0" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000001ea60", + "gasLimit" : "0x027100", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xe3f617fdd29557d15cab35cb321895b4a29e8ceaa136c158fb77e1389e24fab2", + "s" : "0x43a990142025f15c12caade84225f324f863991818ca85f59c9696c09ac60dcb", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + "0x00" : "0x01", + "0x01" : "0x01", + "0x04" : "0x0c" + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + "0x02" : "0x08", + "0x03" : "0x0c" + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g1v1Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g1v1Filler.json new file mode 100644 index 000000000..cbad3d903 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stCreate2/RevertDepthCreateAddressCollision_d1g1v1Filler.json @@ -0,0 +1,95 @@ +{ + "RevertDepthCreateAddressCollision_d1g1v1" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000001ea60", + "gasLimit" : "0x027100", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x17574001613876c0e925083d80855b78374e6b5f8217bb5959dd96bd4466e091", + "s" : "0x69a842dcb9d30c79e00ce65060b811dff320a368f828172bd829401129fb2532", + "to" : "0x3e180b1862f9d158abb5e519a6d8605540c23682", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + "0x00" : "0x01", + "0x01" : "0x01", + "0x04" : "0x0c" + } + }, + "0xb000000000000000000000000000000000000000" : { + "storage" : { + "0x02" : "0x08", + "0x03" : "0x0c" + } + } + } + } + ], + "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" : { + "0x3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "0x36", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0xe8d4a51000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60086002556000600060006000f550600c600355", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stCreate2/RevertDepthCreateAddressCollisionFiller.json b/src/GeneralStateTestsFiller/stCreate2/RevertDepthCreateAddressCollisionFiller.json new file mode 100644 index 000000000..b3f4cebd5 --- /dev/null +++ b/src/GeneralStateTestsFiller/stCreate2/RevertDepthCreateAddressCollisionFiller.json @@ -0,0 +1,150 @@ +{ + "RevertDepthCreateAddressCollision" : { + "_info" : { + "comment" : "copy of this test for CREATE2" + }, + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : 1, + "gas" : 1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "0x60016000556000600060006000600073b000000000000000000000000000000000000000600035f1600155600c600455", + "nonce" : "54", + "storage" : { + "0x00" : "0x01", + "0x01" : "0x01", + "0x04" : "0x0c" + } + }, + "b000000000000000000000000000000000000000" : { + "storage" : { + "0x02" : "0x08", + "0x03" : "0x0c" + } + } + } + }, + { + "//comment" : "OOG in subcall", + "indexes" : { + "data" : 0, + "gas" : 1, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "{ [[0]] 1 [[1]] (CALL (CALLDATALOAD 0) 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[4]] 12 }", + "nonce" : "54", + "storage" : { + "0x00" : "0x01", + "0x04" : "0x0c" + } + }, + "b000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + }, + { + "//comment" : "OOG after subcall", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "0x05", + "code" : "{ [[0]] 1 [[1]] (CALL (CALLDATALOAD 0) 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[4]] 12 }", + "nonce" : "54", + "storage" : { + } + }, + "b000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + }, + { + "//comment" : "double OOG", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : -1 + }, + "network" : [">=Constantinople"], + "result" : { + "3e180b1862f9d158abb5e519a6d8605540c23682" : { + "code" : "{ [[0]] 1 [[1]] (CALL (CALLDATALOAD 0) 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[4]] 12 }", + "nonce" : "54", + "storage" : { + } + }, + "b000000000000000000000000000000000000000" : { + "storage" : { + } + } + } + } + ], + "pre" : + { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000", + "code" : "", + "nonce" : "0", + "storage" : { + } + }, + "3e180b1862f9d158abb5e519a6d8605540c23682" : { + "balance" : "5", + "code" : "{ [[0]] 1 [[1]] (CALL (CALLDATALOAD 0) 0xb000000000000000000000000000000000000000 0 0 0 0 0) [[4]] 12 }", + "nonce" : "54", + "storage" : { + } + }, + "b000000000000000000000000000000000000000" : { + "balance" : "", + "code" : "{ [[2]] 8 (CREATE2 0 0 0 0) [[3]] 12}", + "nonce" : "", + "storage" : { + } + } + }, + "transaction" : { + "//0 data" : "Call with value to address A, then another call X, in the call X CREATE of account A, OOG -> revert call X.", + "//1 data" : "d0g0 - double OOG, d0g1 - OOG inside subcall, d1g0 - OOG after subcall, d1g1 - no OOG", + "data" : [ + "0x000000000000000000000000000000000000000000000000000000000000ea60", + "0x000000000000000000000000000000000000000000000000000000000001ea60" + ], + "gasLimit" : [ + "110000", "160000" + ], + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "3e180b1862f9d158abb5e519a6d8605540c23682", + "value" : [ + "1", "0" + ] + } + } +} |