2018-07-04 09:25:45 +00:00
|
|
|
contract C {
|
|
|
|
function f() view 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-07-04 09:25:45 +00:00
|
|
|
require(true);
|
|
|
|
assert(true);
|
|
|
|
x; y; z;
|
|
|
|
}
|
|
|
|
function g() 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-07-04 09:25:45 +00:00
|
|
|
require(true);
|
|
|
|
assert(true);
|
|
|
|
x; y; z;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// Warning 2018: (17-288): Function state mutability can be restricted to pure
|
|
|
|
// Warning 2018: (293-559): Function state mutability can be restricted to pure
|