File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
src/GeneralStateTestsFiller/stSystemOperationsTest Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ doubleSelfdestructTest :
2+ _info :
3+ comment : |
4+ The first test case required here https://github.com/ethereum/tests/issues/431#issue-306081539 .
5+ Invoked Solidity 0.4.21 with solc --bin-runtime --optimize
6+ contract DoubleSelfdestructTest {
7+ address constant B1 = 0x1;
8+ address constant B2 = 0x2;
9+ function remoteSelfdestruct() external {
10+ selfdestruct(B2);
11+ }
12+ function() external payable {
13+ this.remoteSelfdestruct();
14+ selfdestruct(B1);
15+ }
16+ }
17+ env :
18+ currentCoinbase : 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba
19+ currentDifficulty : ' 0x20000'
20+ currentGasLimit : ' 10000000000'
21+ currentNumber : ' 1'
22+ currentTimestamp : ' 1000'
23+ previousHash : 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6
24+ expect :
25+ - indexes :
26+ data : !!int -1
27+ gas : !!int -1
28+ value : !!int -1
29+ network :
30+ - <EIP150
31+ result :
32+ ' 0000000000000000000000000000000000000002 ' :
33+ shouldnotexist : ' 1'
34+ - indexes :
35+ data : !!int -1
36+ gas : !!int -1
37+ value : !!int -1
38+ network :
39+ - ' >=EIP150'
40+ result :
41+ ' 0000000000000000000000000000000000000002 ' :
42+ balance : ' 1000000000000100000'
43+ pre :
44+ 095e7baea6a6c7c4c2dfeb977efac326af552d87 :
45+ balance : ' 1000000000000000000'
46+ code : ' 0x606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632c3f2bf3811460b4575b3073ffffffffffffffffffffffffffffffffffffffff16632c3f2bf36040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b151560a057600080fd5b5af1151560ac57600080fd5b506001915050ff5b341560be57600080fd5b60c460c6565b005b6002ff00a165627a7a7230582050afafcb56c38a6100bd690c100a940b5fd73919053a82fbe14e6cf89dce4c430029'
47+ nonce : ' 0'
48+ storage : {}
49+ a94f5374fce5edbc8e2a8697c15331677e6ebf0b :
50+ balance : ' 1000000000000000000'
51+ code : ' '
52+ nonce : ' 0'
53+ storage : {}
54+ transaction :
55+ data :
56+ - ' '
57+ gasLimit :
58+ - ' 1000000000'
59+ gasPrice : ' 0'
60+ nonce : ' 0'
61+ secretKey : 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8
62+ to : 095e7baea6a6c7c4c2dfeb977efac326af552d87
63+ value :
64+ - ' 100000'
You can’t perform that action at this time.
0 commit comments