2018-06-04 11:54:32 +00:00
contract C {
function f ( ) public {
2020-12-14 15:51:07 +00:00
payable ( this ) . transfer ( 1 ) ;
require ( payable ( this ) . send ( 2 ) ) ;
selfdestruct ( payable ( this ) ) ;
2018-08-15 21:30:09 +00:00
( bool success , ) = address ( this ) . delegatecall ( " " ) ;
require ( success ) ;
( success , ) = address ( this ) . call ( " " ) ;
require ( success ) ;
2018-06-04 11:54:32 +00:00
}
function g ( ) pure public {
bytes32 x = keccak256 ( " abc " ) ;
bytes32 y = sha256 ( " abc " ) ;
2018-08-06 12:59:37 +00:00
address z = ecrecover ( bytes32 ( uint256 ( 1 ) ) , uint8 ( 2 ) , bytes32 ( uint256 ( 3 ) ) , bytes32 ( uint256 ( 4 ) ) ) ;
2018-06-04 11:54:32 +00:00
require ( true ) ;
assert ( true ) ;
x ; y ; z ;
}
2019-09-09 16:22:02 +00:00
receive ( ) payable external { }
2018-06-04 11:54:32 +00:00
}
2021-03-12 23:02:36 +00:00
// ----
2023-01-19 08:34:14 +00:00
// Warning 5159: (122-134): "selfdestruct" has been deprecated. The underlying opcode will eventually undergo breaking changes, and its use is not recommended.