mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
285 B
Solidity
12 lines
285 B
Solidity
|
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));
|
||
|
}
|
||
|
}
|