mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-27 12:59:55 +00:00
patches (#1965)
This commit is contained in:
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())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user