Skip to content

Commit 5cb4123

Browse files
committed
fixes GH #1330
1 parent 07da454 commit 5cb4123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/staking/increase_take.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ impl<T: Config> Pallet<T> {
6161
let block: u64 = Self::get_current_block_as_u64();
6262
ensure!(
6363
!Self::exceeds_tx_delegate_take_rate_limit(
64-
Self::get_last_tx_block_delegate_take(&coldkey),
64+
Self::get_last_tx_block_delegate_take(&hotkey),
6565
block
6666
),
6767
Error::<T>::DelegateTxRateLimitExceeded
6868
);
6969

7070
// Set last block for rate limiting
71-
Self::set_last_tx_block_delegate_take(&coldkey, block);
71+
Self::set_last_tx_block_delegate_take(&hotkey, block);
7272

7373
// --- 6. Set the new take value.
7474
Delegates::<T>::insert(hotkey.clone(), take);

0 commit comments

Comments
 (0)