Skip to content

Permissions for Controller.genericCall #71

@LeibnizCapital

Description

@LeibnizCapital

The peepeth scheme does this:

        Controller controller = Controller(_avatar.owner());
        // Sends a call to the Peepeth contract to create an account.
        // The call will be made from the avatar address such that when received by the Peepeth contract, the msg.sender value will be the avatar's address
        controller.genericCall(
            peepethContract, 
            abi.encodeWithSelector(PeepethInterface(peepethContract).createAccount.selector, _name, _ipfsHash),
            _avatar,
            0
        );

I tried the same in my own dao but it reverts. I can do a normal myContract.call with the same encoding. What part of the implementation gives it the permissions to call. Is it inheriting UniversalScheme?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions