solidity/test/libsolidity/syntaxTests/deprecated_functions.sol
hrkrshnn 88c99a7538 Tests/Docs: changing type of msg.sender and tx.origin into address
And also making the type of address(literal) as non-payable address.
2020-12-14 16:55:48 +01:00

13 lines
346 B
Solidity

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