This commit is contained in:
Shawn Tabrizi
2020-11-17 16:26:19 +01:00
committed by GitHub
parent 976301ac98
commit 0efee478a2
3 changed files with 47 additions and 2 deletions
@@ -51,3 +51,9 @@ frame_support::decl_module! {
// ideally, though, the `construct_runtime` should support a free-standing origin.
pub struct Module<T: Trait> for enum Call where origin: <T as frame_system::Trait>::Origin {}
}
impl From<u32> for Origin {
fn from(id: u32) -> Origin {
Origin::Parachain(id.into())
}
}