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

Accesscontrol getminters and minor naming changes #155

Merged
merged 2 commits into from
Feb 19, 2023
Merged

Accesscontrol getminters and minor naming changes #155

merged 2 commits into from
Feb 19, 2023

Conversation

bal7hazar
Copy link
Contributor

Fix #154

@bal7hazar bal7hazar changed the title Accesscontrol getminters and minor naming Accesscontrol getminters and minor naming changes Feb 14, 2023
Copy link
Member

@tekkac tekkac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,
At some point we should start thinking about smart contract storage migrations when upgrading contracts.

src/utils/access/library.cairo Show resolved Hide resolved
src/vesting/vester.cairo Show resolved Hide resolved
// Case where user has been registered by an older mechanism
// Access control storage must be left unchanged
let (stored_user) = CarbonableAccessControl_role_members_index.read(role, user_index);
if (user != stored_user) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our case, I suppose we should revoke the role before upgrading, right?

@bal7hazar bal7hazar merged commit ba9772e into Carbonable:main Feb 19, 2023
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.

AccessControl - getMinters and minor naming
2 participants