-
Notifications
You must be signed in to change notification settings - Fork 0
[AHM Gov] AssetHub as Superuser on Polkadot relay - utils & config #12
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
[AHM Gov] AssetHub as Superuser on Polkadot relay - utils & config #12
Conversation
relay/common/src/lib.rs
Outdated
| pub struct LocationAsSuperuser<SuperuserLocation, RuntimeOrigin>( | ||
| PhantomData<(SuperuserLocation, RuntimeOrigin)>, | ||
| ); | ||
| impl<SuperuserLocation: Get<Location>, RuntimeOrigin: OriginTrait> ConvertOrigin<RuntimeOrigin> |
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.
for matching we use Contains
| impl<SuperuserLocation: Get<Location>, RuntimeOrigin: OriginTrait> ConvertOrigin<RuntimeOrigin> | |
| impl<SuperuserLocation: Contains<Location>, RuntimeOrigin: OriginTrait> ConvertOrigin<RuntimeOrigin> |
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.
Fixed in 34963d7
| use xcm::latest::{Location, OriginKind}; | ||
| use xcm_executor::traits::ConvertOrigin; | ||
|
|
||
| pub struct LocationAsSuperuser<SuperuserLocation, RuntimeOrigin>( |
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.
please add here some docs, because it is a pub struct and all pub stuff should have rustdocs
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.
fixed in bdbbd72
bkontur
left a comment
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.
Very good!
306c2ff
into
bkontur:bko-ahm-governance-root
LocalOriginConverter