mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
465 B
Solidity
13 lines
465 B
Solidity
contract C {
|
|
function f() public pure {
|
|
abi.decode();
|
|
abi.decode(msg.data);
|
|
abi.decode(msg.data, uint, uint);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (46-58): This function takes two arguments, but 0 were provided.
|
|
// TypeError: (64-84): This function takes two arguments, but 1 were provided.
|
|
// TypeError: (90-122): This function takes two arguments, but 3 were provided.
|
|
// TypeError: (111-115): The second argument to "abi.decode" has to be a tuple of types.
|