solidity/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_invalid_arg_count.sol
2018-08-15 10:45:16 +02:00

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.