Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-otf committed Dec 11, 2024
1 parent 9ed69b8 commit 7560ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/precompiles/metagraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl MetagraphPrecompile {
exit_status: ExitError::Other(sp_version::Cow::Borrowed(NO_HOTKEY)),
})?;

let axon = pallet_subtensor::Pallet::<Runtime>::get_axon_info(netuid, &hotkey);
let axon = pallet_subtensor::Axons::<Runtime>::get(netuid, &hotkey).unwrap_or_default();

let mut block_result = [0_u8; 32];
U256::to_big_endian(&U256::from(axon.block), &mut block_result);
Expand Down

0 comments on commit 7560ff8

Please sign in to comment.