This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-11-17 15:26:19 +00:00
1 parent 976301ac98
commit 0efee478a2
3 files changed
+47 -2

No files matched your search

@@ -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())
}
}