solidity/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol

12 lines
285 B
Solidity
Raw Normal View History

2018-03-21 13:45:32 +00:00
contract C {
function f() pure public returns (bytes32) {
return keccak256(uint8(1));
}
function g() pure public returns (bytes) {
return abi.encode(1);
}
function h() pure public returns (bytes) {
return abi.encodePacked(uint8(1));
}
}