I was looking through a way where there a possibility of implementing a custom root origin in substrate.
-
1What are you trying to archive? Why do you think another root origin will help?– Oliver Tale-YazdiCommented Aug 11, 2022 at 12:09
-
Well I was exploring stuffs and I came to realise that it can be used to have authorization checks inside priviledged functions and custom access logic.– kroos47Commented Aug 16, 2022 at 8:39
Add a comment
|
1 Answer
Some references that you can walk through:
https://paritytech.github.io/substrate/master/src/frame_system/lib.rs.html#788
https://github.com/paritytech/substrate/blob/master/frame/collective/src/lib.rs#L1032