Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions for Controller.genericCall #71

Open
LeibnizCapital opened this issue Apr 24, 2021 · 0 comments
Open

Permissions for Controller.genericCall #71

LeibnizCapital opened this issue Apr 24, 2021 · 0 comments

Comments

@LeibnizCapital
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant