1

So I want my instance of the pallet membership to be managed only by a specific pallet, and not even the Root origin.

Is there anyway to create an EnsureOrigin object that can verify that a specific pallet dispatched the call ?

1 Answer 1

0

You can calculate the address of your pallet, and then easily compare with the origin address.

Check how to obtain the pallet address here Query AccountID of a pallet, here How can we get a Pallet's Sub-Account Address using PolkadotJS API and here How do i find the address of the treasury?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.