aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPure/view_pure_abi_encode.sol
blob: ca7db42e4fb056a9770a123fd7a73269ba256dbc (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() pure public returns (bytes r) {
        r = abi.encode(1, 2);
        r = abi.encodePacked(f());
        r = abi.encodeWithSelector(0x12345678, 1);
        r = abi.encodeWithSignature("f(uint256)", 4);
    }
}