solidity/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_invalid_arg_count.sol

13 lines
485 B
Solidity
Raw Normal View History

2018-06-30 16:09:13 +00:00
contract C {
function f() public pure {
abi.decode();
abi.decode(msg.data);
abi.decode(msg.data, uint, uint);
}
}
// ----
// TypeError 5782: (46-58): This function takes two arguments, but 0 were provided.
// TypeError 5782: (64-84): This function takes two arguments, but 1 were provided.
// TypeError 5782: (90-122): This function takes two arguments, but 3 were provided.
// TypeError 6444: (111-115): The second argument to "abi.decode" has to be a tuple of types.