aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constants/abi_encoding_constant.sol
blob: dd6968a07a67a69421e88ed253a7392e9e1e1adf (plain) (blame)
1
2
3
4
5
6
7
contract C {
    bytes32 constant a = keccak256(abi.encode(1, 2));
    bytes32 constant b = keccak256(abi.encodePacked(uint(1), a));
    bytes32 constant c = keccak256(abi.encodeWithSelector(0x12345678, b, 2));
    bytes32 constant d = keccak256(abi.encodeWithSignature("f()", 1, 2));
}
// ----