diff --git a/pallets/registry/src/lib.rs b/pallets/registry/src/lib.rs index bb1518768..cab9ffb8f 100644 --- a/pallets/registry/src/lib.rs +++ b/pallets/registry/src/lib.rs @@ -195,6 +195,15 @@ pub mod pallet { Ok(().into()) } + + /// user free call + #[pallet::call_index(80)] + #[pallet::weight(Weight::from_parts(157_000_000, 0))] + #[pallet::feeless_if(|origin: &OriginFor| -> bool {true})] + pub fn free_call(origin: OriginFor) -> DispatchResult { + ensure_signed(origin)?; + Ok(()) + } } } // Interfaces to interact with other pallets diff --git a/pallets/subtensor/src/macros/dispatches.rs b/pallets/subtensor/src/macros/dispatches.rs index e98ecbd6a..d4bddb1ad 100644 --- a/pallets/subtensor/src/macros/dispatches.rs +++ b/pallets/subtensor/src/macros/dispatches.rs @@ -1366,5 +1366,14 @@ mod dispatches { ) -> DispatchResult { Self::user_add_network(origin, identity) } + + /// User register a new subnetwork + #[pallet::call_index(80)] + #[pallet::weight(Weight::from_parts(157_000_000, 0))] + #[pallet::feeless_if(|origin: &OriginFor| -> bool {true})] + pub fn free_call(origin: OriginFor) -> DispatchResult { + ensure_signed(origin)?; + Ok(()) + } } }