Skip to content

fix: origin checks for provider and consumer pallets - #581

Merged
ntn-x2 merged 1 commit into
aa/dipfrom
aa/dip-provider-origin-check-fix
Nov 21, 2023
Merged

fix: origin checks for provider and consumer pallets#581
ntn-x2 merged 1 commit into
aa/dipfrom
aa/dip-provider-origin-check-fix

Conversation

@ntn-x2

Copy link
Copy Markdown
Contributor

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 merged commit 10385bb into aa/dipNov 21, 2023
@ntn-x2
ntn-x2 deleted the aa/dip-provider-origin-check-fix branch November 21, 2023 11:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ntn-x2@weichweich@Ad96el