Skip to content

Make it possible that the mock can call other contracts #26

@rmeissner

Description

@rmeissner

E.g. add something similar to

function exec(address payable to, uint256 value, bytes calldata data) external {
    bool success;
    bytes memory response;
    (success,response) = to.call{value: value}(data);
    if(!success) {
        assembly {
            revert(add(response, 0x20), mload(response))
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions