diff --git a/pallets/subtensor/src/rpc_info/metagraph.rs b/pallets/subtensor/src/rpc_info/metagraph.rs index 57c2e15c7f..2ec772b2c6 100644 --- a/pallets/subtensor/src/rpc_info/metagraph.rs +++ b/pallets/subtensor/src/rpc_info/metagraph.rs @@ -869,10 +869,14 @@ impl Pallet { None } else { let mut result = SelectiveMetagraph::default(); + for index in metagraph_indexes.iter() { let value = Self::get_single_selective_mechagraph(netuid, mecid, *index); result.merge_value(&value, *index as usize); } + // always include netuid even the metagraph_indexes doesn't contain it + result.netuid = netuid.into(); + Some(result) } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 931653bfc3..3327d1889a 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -223,7 +223,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 324, + spec_version: 325, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,