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

12 lines
360 B
Solidity
Raw Normal View History

2020-01-22 14:48:56 +00:00
contract C {
function d(bytes memory _data) public pure returns (uint8) {
return abi.decode(_data, (uint8));
}
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ABIEncoderV1Only: true
// ----
// d(bytes): 0x20, 0x01, 0x0000000000000000000000000000000000000000000000000000000000000000 -> FAILURE, hex"08c379a0", 0x20, 18, "Calldata too short"