aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/deprecated_functions_050.sol
blob: 7e36543bde30eaca5e14e892920fa7a4f1904677 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
pragma experimental "v0.5.0";
contract test {
    function f() pure public {
        bytes32 x = sha3(uint8(1));
        x;
    }
    function g() public {
        suicide(1);
    }
}
// ----
// TypeError: (88-102): "sha3" has been deprecated in favour of "keccak256"
// TypeError: (137-147): "suicide" has been deprecated in favour of "selfdestruct"