solidity/test/libsolidity/semanticTests/revertStrings/calldata_array_invalid_length.sol

13 lines
356 B
Solidity
Raw Normal View History

2020-11-23 18:06:44 +00:00
pragma abicoder v2;
2020-01-22 14:48:56 +00:00
contract C {
function f(uint256[][] calldata x) external returns (uint256) {
return x[0].length;
}
}
// ====
// EVMVersion: >=byzantium
// compileViaYul: also
// revertStrings: debug
2020-01-22 14:48:56 +00:00
// ----
// f(uint256[][]): 0x20, 1, 0x20, 0x0100000000000000000000 -> FAILURE, hex"08c379a0", 0x20, 28, "Invalid calldata tail length"