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

Impossible to set permission with ACL within buidler-hooks.js #180

Open
allemanfredi opened this issue Jul 10, 2020 · 1 comment
Open

Impossible to set permission with ACL within buidler-hooks.js #180

allemanfredi opened this issue Jul 10, 2020 · 1 comment

Comments

@allemanfredi
Copy link

Hello,

I'm trying to assign a permission in postInit within buidler-hooks.js in this way:

postDao: async (
    { dao, _experimentalAppInstaller, log },
    { web3, artifacts }
  ) => {
    const ACL = artifacts.require('@aragon/os/build/contracts/acl/ACL')
    acl = await ACL.at(await dao.acl())
  },

...

postInit: async ({ proxy, log }, { web3, artifacts }) => {
    const CHANGE_VAULT_ROLE = await proxy.CHANGE_VAULT_ROLE()
    await acl.createPermission(
      appManager, //accounts[0]
      proxy.address,
      CHANGE_VAULT_ROLE,
      appManager
    )
  },

but when i call createPermission i receive ACL_EXISTENT_MANAGER and if i call revokePermission(appManager, CHANGE_VAULT_ROLE, appManager) i receive ACL_AUTH_NO_MANAGER.

I tried to call getPermissionManager before creating the permission, but i receive 0x0000000000000000000000000000000000000000.

@bpierre bpierre transferred this issue from aragon/client Jul 15, 2020
@welcome
Copy link

welcome bot commented Jul 15, 2020

Thanks for opening your first issue in aragonCLI! Someone will circle back soon ⚡

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