solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pragma abicoder               v2;

contract C {
    struct S { uint256[] a; }
    function f(S[] calldata s) external pure returns (bytes memory) {
        return abi.encode(s);
    }
    function g(S[] calldata s) external view returns (bytes memory) {
        return this.f(s);
    }
}
// ====
// EVMVersion: >homestead
// compileViaYul: also
// ----
// f((uint256[])[]): 32, 1, 32, 32, 3, 17, 42, 23 -> 32, 256, 32, 1, 32, 32, 3, 17, 42, 23
// g((uint256[])[]): 32, 1, 32, 32, 3, 17, 42, 23 -> 32, 256, 32, 1, 32, 32, 3, 17, 42, 23