Skip to content

Commit 614543e

Browse files
committed
SelectiveMetagraph::validator_permit always returns None instead of actual data - fixed
1 parent 202f2c1 commit 614543e

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
@@ -726,7 +726,7 @@ impl<T: Config> Pallet<T> {
726726
coldkeys, // coldkey per UID
727727
axons, // Axon information per UID.
728728
identities,
729-
active: Active::<T>::get(netuid), // Avtive per UID
729+
active: Active::<T>::get(netuid), // Active per UID
730730
validator_permit: ValidatorPermit::<T>::get(netuid), // Val permit per UID
731731
pruning_score: PruningScores::<T>::get(netuid)
732732
.into_iter()
@@ -1172,7 +1172,7 @@ impl<T: Config> Pallet<T> {
11721172
},
11731173
Some(SelectiveMetagraphIndex::ValidatorPermit) => SelectiveMetagraph {
11741174
netuid: netuid.into(),
1175-
active: Some(ValidatorPermit::<T>::get(netuid)),
1175+
validator_permit: Some(ValidatorPermit::<T>::get(netuid)),
11761176
..Default::default()
11771177
},
11781178

0 commit comments

Comments
 (0)