-
Notifications
You must be signed in to change notification settings - Fork 121
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
registries: Add tests for Unauthorized Operation #537
base: develop
Are you sure you want to change the base?
Conversation
pallets/registries/src/tests.rs
Outdated
|
||
// delegate has ADMIN permission and not ASSERT | ||
assert_err!( | ||
Registries::ensure_authorization_origin(&delegator_id, &delegate), |
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.
Shouldn't this be delegate_authorization_id
?
pallets/registries/src/tests.rs
Outdated
&[®istry_id.encode()[..], &delegate.encode()[..], &creator.encode()[..]].concat()[..], | ||
); | ||
|
||
let delegator_id: AuthorizationIdOf = generate_authorization_id::<Test>(&delegator_id_digest); |
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.
Naming this as delegate_auth_id
would be more readable, as this belongs to a delegate and not to a delegator.
Similar to other places as well.
Delegator is the one who will delegate others.
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
one more file with conflict :-/ |
Fixes: #535