Skip to content

Commit 7579124

Browse files
authored
Merge pull request #2073 from opentensor/fix-netuid-index-selective-metagraph
Fix/Use `netuid_index` in selective metagraph
2 parents 3fde7dc + 773f591 commit 7579124

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pallets/subtensor/src/rpc_info/metagraph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ impl<T: Config> Pallet<T> {
14531453
Some(SelectiveMetagraphIndex::Incentives) => SelectiveMetagraph {
14541454
netuid: netuid.into(),
14551455
incentives: Some(
1456-
Incentive::<T>::get(NetUidStorageIndex::from(netuid))
1456+
Incentive::<T>::get(netuid_index)
14571457
.into_iter()
14581458
.map(Compact::from)
14591459
.collect(),
@@ -1464,7 +1464,7 @@ impl<T: Config> Pallet<T> {
14641464
Some(SelectiveMetagraphIndex::LastUpdate) => SelectiveMetagraph {
14651465
netuid: netuid.into(),
14661466
last_update: Some(
1467-
LastUpdate::<T>::get(NetUidStorageIndex::from(netuid))
1467+
LastUpdate::<T>::get(netuid_index)
14681468
.into_iter()
14691469
.map(Compact::from)
14701470
.collect(),

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 318,
223+
spec_version: 319,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,

0 commit comments

Comments
 (0)