From ef61773755d33c436b62390cea7a95b856832a10 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 24 Jan 2025 18:11:32 -0800 Subject: [PATCH] Fix for case when owner key identities are not set. In this case `get_metagraph` returns None instead of metagraph data. --- pallets/subtensor/src/rpc_info/metagraph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/rpc_info/metagraph.rs b/pallets/subtensor/src/rpc_info/metagraph.rs index 091c7e259c..e8dcf6f96d 100644 --- a/pallets/subtensor/src/rpc_info/metagraph.rs +++ b/pallets/subtensor/src/rpc_info/metagraph.rs @@ -122,7 +122,7 @@ impl Pallet { hotkeys.push(hotkey.clone()); coldkeys.push(coldkey.clone()); block_at_registration.push(BlockAtRegistration::::get(netuid, uid).into()); - identities.push(Identities::::get(coldkey.clone())?); + identities.push(Identities::::get(coldkey.clone()).unwrap_or_default()); axons.push(Self::get_axon_info(netuid, &hotkey)); } let mut tao_dividends_per_hotkey: Vec<(T::AccountId, Compact)> = vec![];