aboutsummaryrefslogtreecommitdiffstats
path: root/src/BlockchainTestsFiller/bcStateTests/suicideStorageCheckVCreateFiller.json
blob: 9bbed7f597ca25c9a1d0b1ed14c59955b58e5caa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
    "suicideStorageCheckVCreate" : {
    "_info" : {
        "comment" : "[2:21:10] Vitalik Buterin: (i) set storage key 1 of contract C to 3. (ii) self-destruct contract C. (iii) in the next transaction create contract C, and read its storage key.  I - via old create."
    },
        "genesisBlockHeader" : {
            "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
            "difficulty" : "0x020000",
            "extraData" : "0x42",
            "gasLimit" : "3141592",
            "gasUsed" : "0",
            "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "nonce" : "0x0102030405060708",
            "number" : "0",
            "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
            "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a",
            "timestamp" : "0x54c98c81",
            "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
        },
    "sealEngine" : "NoProof",
    "expect" : [
       {
            "network" : ["Byzantium"],
            "result" : {
                "0000000000000000000000000000000000000001" : {
                "balance" : "1000"
                },
                "e3476106159f87477ad639e3ddcbb6b240efe459" : {
                "nonce" : "1",
                "storage" : {
                   "0x02" : "2"
                }
                },
                "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "nonce" : "2"
                }
           }
       },
       {
            "network" : [">=Constantinople"],
            "result" : {
                "0000000000000000000000000000000000000001" : {
                "balance" : "1000"
                },
                "e3476106159f87477ad639e3ddcbb6b240efe459" : {
                "nonce" : "1",
                "storage" : {
                    "0x02" : "2"
                }
                },
                "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "nonce" : "2"
                }
           }
       }
        ],
        "pre" : {
            "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
                "balance" : "10000000000",
                "nonce" : "0",
                "code" : "",
                "storage": {}
            },
            "e3476106159f87477ad639e3ddcbb6b240efe459" : {
                "balance" : "1000",
                "nonce" : "0",
                "code" : "{ (SSTORE 1 3) (SELFDESTRUCT 1) }",
                "storage": {}
            }
        },
        "blocks" : [
            {
                "transactions" : [
         {
            "data" : "",
            "gasLimit" : "400000",
            "gasPrice" : "1",
            "nonce" : "0",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "e3476106159f87477ad639e3ddcbb6b240efe459",
            "value" : "0"
         },
         {
            "//data" : "{ (SSTORE 3 (SLOAD 1)) (SSTORE 2 2) }",
            "data" : "{ (MSTORE 0 0x6001546003556002600255) (CREATE 0 21 11) }",
            "gasLimit" : "400000",
            "gasPrice" : "1",
            "nonce" : "1",
            "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
            "to" : "",
            "value" : "0"
         }
                ],
                "uncleHeaders" : [
                ]
            }
        ]
    }
}