aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/deprecated_functions.sol
blob: 62dfcff95952670f111868591b33b48c9713f0a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                  
                                     


                             
                                                                    


         

                                                                                  
contract test {
    function f() pure public {
        bytes32 x = sha3("");
        x;
    }
    function g() public {
        suicide(0x0000000000000000000000000000000000000001);
    }
}
// ----
// TypeError: (58-66): "sha3" has been deprecated in favour of "keccak256"
// TypeError: (101-152): "suicide" has been deprecated in favour of "selfdestruct"