mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
666 B
Solidity
14 lines
666 B
Solidity
|
contract C {
|
||
|
function f() pure public {
|
||
|
abi.encodeWithSelector();
|
||
|
abi.encodeWithSignature();
|
||
|
abi.encodeWithSelector(uint(2), 2);
|
||
|
abi.encodeWithSignature(uint(2), 2);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (52-76): Need at least 1 arguments for function call, but provided only 0.
|
||
|
// TypeError: (86-111): Need at least 1 arguments for function call, but provided only 0.
|
||
|
// TypeError: (144-151): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes4 requested.
|
||
|
// TypeError: (189-196): Invalid type for argument in function call. Invalid implicit conversion from uint256 to string memory requested.
|