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

fix: origin checks for provider and consumer pallets #581

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

ntn-x2
Copy link
Member

@ntn-x2 ntn-x2 commented Nov 17, 2023

Ensuring the origin is a DID origin for the implementor of the provider pallet might not be enough. They need to check that the origin indeed matches the identifier being acted upon. Replacing EnsureOrigin with EnsureOriginWithArg gives access to that information.

Tests will ALL be implemented in a different PR 😄

@ntn-x2 ntn-x2 self-assigned this Nov 17, 2023
@ntn-x2 ntn-x2 merged commit 10385bb into aa/dip Nov 21, 2023
2 checks passed
@ntn-x2 ntn-x2 deleted the aa/dip-provider-origin-check-fix branch November 21, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants