solidity/test/libsolidity/smtCheckerTests/special/abi_encode_slice.sol
2020-12-17 14:42:49 +01:00

8 lines
169 B
Solidity

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