Skip to content

feat(standards): read Authority procedure roles without requiring a RoleSymbol - #3524

Open
onurinanc wants to merge 3 commits into
nextfrom
fix-role-felt
Open

feat(standards): read Authority procedure roles without requiring a RoleSymbol#3524
onurinanc wants to merge 3 commits into
nextfrom
fix-role-felt

Conversation

@onurinanc

Copy link
Copy Markdown
Collaborator

Closes: #3523

Comment on lines +83 to +84
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ProcedureRole(Felt);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would probably go the other way here: instead of accepting invalid RoleSymbols, we can enforce that all roles are valid role symbols onchain. I believe this would be just an extra "less-than" check.

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.

RBAC treats any non-zero role felt as valid, but Rust requires canonical RoleSymbol

2 participants