Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

fallback return value "bytes memory" isn't asigned,  #39

@FinagleLord

Description

@FinagleLord

fallback(bytes calldata _input) external returns (bytes memory) { (address sender, uint256 amount0, uint256 amount1, bytes memory data) = abi.decode(_input[4:], (address, uint256, uint256, bytes)); uniswapV2Call(sender, amount0, amount1, data); }

would this be a solution?

fallback(bytes calldata _input) external returns (bytes memory) { (address sender, uint256 amount0, uint256 amount1, bytes memory data) = abi.decode(_input[4:], (address, uint256, uint256, bytes)); uniswapV2Call(sender, amount0, amount1, data); return data; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions