File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pub mod pallet {
158
158
netuid : u16 ,
159
159
min_difficulty : u64 ,
160
160
) -> DispatchResult {
161
- pallet_subtensor :: Pallet :: < T > :: ensure_subnet_owner_or_root ( origin, netuid ) ?;
161
+ ensure_root ( origin) ?;
162
162
163
163
ensure ! (
164
164
pallet_subtensor:: Pallet :: <T >:: if_subnet_exist( netuid) ,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl<T: Config> Pallet<T> {
87
87
let alpha_out_i = alpha_emission_i;
88
88
// Only emit TAO if the subnetwork allows registration.
89
89
if !Self :: get_network_registration_allowed ( * netuid_i)
90
- && Self :: get_network_pow_registration_allowed ( * netuid_i)
90
+ && ! Self :: get_network_pow_registration_allowed ( * netuid_i)
91
91
{
92
92
tao_in_i = asfloat ! ( 0.0 ) ;
93
93
}
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
229
229
// `spec_version`, and `authoring_version` are the same between Wasm and native.
230
230
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
231
231
// the compatible custom types.
232
- spec_version : 233 ,
232
+ spec_version : 234 ,
233
233
impl_version : 1 ,
234
234
apis : RUNTIME_API_VERSIONS ,
235
235
transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments