aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol
blob: 81e69eb440735a79309a2526d5497b30b7cad640 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
contract C {
    function f() pure public returns (bytes32) {
        return keccak256(uint8(1));
    }
    function g() pure public returns (bytes32) {
        return sha3(uint8(1));
    }
    function h() pure public returns (bytes32) {
        return sha256(uint8(1));
    }
    function j() pure public returns (bytes32) {
        return ripemd160(uint8(1));
    }
    function k() pure public returns (bytes) {
        return abi.encodePacked(uint8(1));
    }
    function l() pure public returns (bytes) {
        return abi.encode(1);
    }
}
// ----
// Warning: (168-182): "sha3" has been deprecated in favour of "keccak256"