mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
831 B
Solidity
12 lines
831 B
Solidity
contract C {
|
|
function f() public {
|
|
require(ripemd160() != 0);
|
|
require(ripemd160(uint(1)) != 0);
|
|
require(ripemd160(uint(1), uint(2)) != 0);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (55-66): Wrong argument count for function call: 0 arguments given but expected 1. This function requires a single bytes argument. Use abi.encodePacked(...) to properly encode the values.
|
|
// TypeError: (100-107): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to properly encode the values.
|
|
// TypeError: (132-159): Wrong argument count for function call: 2 arguments given but expected 1. This function requires a single bytes argument. Use abi.encodePacked(...) to properly encode the values.
|