-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add pauser role and user it in service config #124
Conversation
contracts/ServiceConfiguration.sol
Outdated
@@ -74,6 +79,7 @@ contract ServiceConfiguration is AccessControl, IServiceConfiguration { | |||
* owners. | |||
*/ | |||
constructor() { | |||
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender); | |||
// Grant the contract deployer the Operator role | |||
_setupRole(OPERATOR_ROLE, msg.sender); |
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.
Think it's worth deferring this, and letting the Admin grant the OPERATOR role in a separate transaction?
const serviceConfiguration = await pool.serviceConfiguration(); | ||
const ServiceConfiguration = await ethers.getContractFactory( | ||
"ServiceConfiguration" | ||
); |
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 is fine, but the deployPool
method from the fixture also returns the serviceConfiguration you can use instead of this
No description provided.