This does not work in a template (it reverts):
//_acl.createPermission(_grantee, _app, _app.JUDGE_ROLE(), _manager);
if (_soleController != 0x0) {
_acl.createPermission(_soleController, _app, _app.JUDGE_ROLE(), _manager);
}
I am trying to give permission to vote and (for debugging purposes) also unlimited permissions for a single Ethereum address _soleController
. How to make it controlled by a single user without the need to vote?
_manager
is a voting manager.
The template is available at https://github.com/vporton/courts/blob/8bc7f5d4294ec3ebd1ca4b220ae6919c382d5c09/contracts/Template.sol