mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
patches (#1965)
This commit is contained in:
@@ -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