Receive Messages

An example is provided below:

    
    function mint(
        bytes calldata params
    ) public {
        (uint128 sid, uint256 amount, address to, uint256 opId) = abi.decode(
            params,
            (uint128, uint256, address, uint256)
        );
        synthFactory.mint(sid, amount, to, opId);
    }

Last updated