daostack / daostack/DAOstack-Hackers-Kit
Permissions for Controller.genericCall
- Dominant language
- TypeScript
- Stars
- 202
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.