-
Notifications
You must be signed in to change notification settings - Fork 160
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
Permission manager changes #313
Conversation
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
@comeonbuddy please review the PR as tests seem not to be passing. |
all test now fixed, pls have a look again. |
require(_multiModules.length == _multiPerms.length, "modules and permission length are not same"); | ||
|
||
for(uint8 i=0;i<_multiPerms.length;i++){ | ||
bool _currentPerm = !perms[_multiModules[i]][_delegate][_multiPerms[i]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of duplicating the logic, for each entry call changePermission
@comeonbuddy
Hey @pabloruiz55 I am doing some improvements in the logic |
contracts/modules/PermissionManager/GeneralPermissionManager.sol
Outdated
Show resolved
Hide resolved
…athNetwork/polymath-core into Permission-Manager-Changes
TRAVIS_PULL_REQUEST=false scripts/test.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will disable coverage calculation on local machines but won't affect travis as travis sets TRAVIS_PULL_REQUEST
to the pull request number automatically (which apparently, can't be overwritten).
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
added 5 more functions in general permission manager
https://app.asana.com/0/843053006731091/818024811891878
Does this PR introduce a breaking change?
No.
Any Other information:
In getAllModulesAndPerms(), as discussed we will pass on the module types as input to the function.
Similarly in getAllDelegatesWithPerm(), assume module add will also be provided.
Uint test is working.