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

Add pauser role and user it in service config #124

Merged
merged 15 commits into from
Dec 8, 2022
Merged

Add pauser role and user it in service config #124

merged 15 commits into from
Dec 8, 2022

Conversation

bricestacey
Copy link
Contributor

No description provided.

ams9198
ams9198 previously approved these changes Dec 2, 2022
@@ -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);
Copy link
Contributor

@ams9198 ams9198 Dec 3, 2022

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"
);
Copy link
Contributor

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

@bricestacey bricestacey merged commit f247ca2 into circlefin:master Dec 8, 2022
@bricestacey bricestacey deleted the val-96 branch December 8, 2022 15:33
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

Successfully merging this pull request may close these issues.

3 participants