solidity/test/libsolidity/smtCheckerTests/special/abi_encode_slice.sol

8 lines
169 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f(bytes calldata data) external pure returns (bytes memory) {
return abi.encode(bytes(data[:32]));
}
}
// ----