solidity/test/libsolidity/syntaxTests/deprecated_functions.sol

13 lines
322 B
Solidity
Raw Normal View History

2018-04-20 00:52:50 +00:00
contract test {
function f() pure public {
2018-05-15 10:53:23 +00:00
bytes32 x = sha3();
2018-04-20 00:52:50 +00:00
x;
}
function g() public {
suicide(0x0000000000000000000000000000000000000001);
2018-04-20 00:52:50 +00:00
}
}
// ----
2018-06-12 16:06:47 +00:00
// TypeError: (58-64): "sha3" has been deprecated in favour of "keccak256"
// TypeError: (99-150): "suicide" has been deprecated in favour of "selfdestruct"