solidity/test/libsolidity/semanticTests/revertStrings/enum.sol
2020-02-10 11:57:20 -03:00

13 lines
263 B
Solidity

contract C {
enum E {X, Y}
function f(E[] calldata arr) external {
arr[1];
}
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ABIEncoderV1Only: true
// ----
// f(uint8[]): 0x20, 2, 3, 3 -> FAILURE, hex"08c379a0", 0x20, 17, "Enum out of range"