-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added organization library #513
Conversation
The organization library can be used for contracts that must be managed by an organization that can manage owners, admins, and workers. Fixes OpenST#484
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.
Nice 👍 🙌
Few comments and question inline.
We have Owner, Admin and Workers keys. The owner can add an admin, admin and owner can add workers. Ideally, I would expect owner and admin should be able to perform all those operations that worker can perform.
Where ever we add onlyWorker
modifier, it should also allow admin and owner key to perform that operation? 🤔
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.
👍 Looks nice.
I just have a few inline comments.
One of the questions was why are we using assert.ok
in a test? It will always pass for any undefined data.
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.
👍
I just have one concern related to a test case Checks for added worker, isWorker returns true.
Please check inline comment.
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.
I did all the requested changes.
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.
LGTM 🚀 ⏩
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.
LGTM 🚀
The organization library can be used for contracts that must be managed
by an organization that can manage owners, admins, and workers.
Fixes #484