diff options
upgrade eip158 to general tests
Diffstat (limited to 'src/GeneralStateTestsFiller/stSolidityTest/TestContractSuicideFiller.json')
-rw-r--r-- | src/GeneralStateTestsFiller/stSolidityTest/TestContractSuicideFiller.json | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/src/GeneralStateTestsFiller/stSolidityTest/TestContractSuicideFiller.json b/src/GeneralStateTestsFiller/stSolidityTest/TestContractSuicideFiller.json index f9b9c64ac..3f667f7ed 100644 --- a/src/GeneralStateTestsFiller/stSolidityTest/TestContractSuicideFiller.json +++ b/src/GeneralStateTestsFiller/stSolidityTest/TestContractSuicideFiller.json @@ -15,7 +15,7 @@ "gas" : -1, "value" : -1 }, - "network" : "Frontier", + "network" : ["ALL"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "nonce" : "1", @@ -28,8 +28,37 @@ ], "pre" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "//" : "}\t\t\t\t\t\t\t\t\t", "balance" : "100000", + "//": "contract TestContract ", + "//": "{ ", + "//": " function testMethod() returns (int res) ", + "//": " { ", + "//": " return 225; ", + "//": " } ", + "//": " ", + "//": " function destroy(address sendFoundsTo) ", + "//": " { ", + "//": " suicide(sendFoundsTo); ", + "//": " } ", + "//": "} ", + "//": "contract main ", + "//": "{ ", + "//": " bool returnValue; ", + "//": " function run() returns (bool) ", + "//": " { ", + "//": " returnValue = testContractSuicide(); ", + "//": " return returnValue; ", + "//": " } ", + "//": " ", + "//": " function testContractSuicide() returns (bool res) ", + "//": " { ", + "//": " TestContract a = new TestContract(); ", + "//": " a.destroy(block.coinbase); ", + "//": " if (a.testMethod() == 225) //we should be able to call a contract ", + "//": " return true; ", + "//": " return false; ", + "//": " } ", + "//": "} ", "code" : "0x7c01000000000000000000000000000000000000000000000000000000006000350463a60eedda8114610039578063c04062261461004b57005b61004161005d565b8060005260206000f35b61005361015a565b8060005260206000f35b60006000608161018a600039608160006000f0905073ffffffffffffffffffffffffffffffffffffffff811662f55d9d6000807ef55d9d00000000000000000000000000000000000000000000000000000000825260044173ffffffffffffffffffffffffffffffffffffffff168152602001600060008660325a03f16100e057005b505073ffffffffffffffffffffffffffffffffffffffff811663b9c3d0a5602060007fb9c3d0a50000000000000000000000000000000000000000000000000000000081526004600060008660325a03f161013757005b505060005160e11461014857610151565b60019150610156565b600091505b5090565b600061016461005d565b600060006101000a81548160ff0219169083021790555060ff600160005404169050905600607580600c6000396000f3007c01000000000000000000000000000000000000000000000000000000006000350462f55d9d81146036578063b9c3d0a514604557005b603f600435605a565b60006000f35b604b6055565b8060005260206000f35b60e190565b8073ffffffffffffffffffffffffffffffffffffffff16ff5056", "nonce" : "0", "storage" : { @@ -59,4 +88,4 @@ ] } } -}
\ No newline at end of file +} |