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

10 lines
289 B
Solidity
Raw Normal View History

2020-01-22 14:48:56 +00:00
pragma experimental ABIEncoderV2;
contract C {
function e(bytes memory a) public pure returns (uint) { return 7; }
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
// e(bytes): 0x20, 7 -> FAILURE, hex"08c379a0", 0x20, 39, "ABI decoding: invalid byte array", " length"