We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b70ab2 commit 9d3218bCopy full SHA for 9d3218b
runtime/src/precompiles/staking.rs
@@ -115,10 +115,12 @@ impl StakingPrecompile {
115
116
fn get_stake(data: &[u8]) -> PrecompileResult {
117
let (hotkey, coldkey) = Self::parse_hotkey_coldkey(data)?;
118
+ let netuid = Self::parse_netuid(data, 0x3E)?;
119
- let stake = pallet_subtensor::Pallet::<Runtime>::get_stake_for_coldkey_and_hotkey(
120
+ let stake = pallet_subtensor::Pallet::<Runtime>::get_stake_for_hotkey_and_coldkey_on_subnet(
121
&hotkey.into(),
122
&coldkey.into(),
123
+ netuid,
124
);
125
126
let stake_u256 = U256::from(stake);
0 commit comments