solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    function f() public pure returns (uint256, bytes memory) {
        bytes memory arg = "abcdefg";
        return abi.decode(abi.encode(uint256(33), arg), (uint256, bytes));
    }
}

// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 0x21, 0x40, 0x7, "abcdefg"