Skip to content

Commit a4341fc

Browse files
committed
netuid => netuid_index
1 parent 3fde7dc commit a4341fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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(NetUidStorageIndex::from(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(NetUidStorageIndex::from(netuid_index))
14681468
.into_iter()
14691469
.map(Compact::from)
14701470
.collect(),

0 commit comments

Comments
 (0)