Skip to content

Commit c542916

Browse files
author
unconst
committed
dynamic block
1 parent 71b05c1 commit c542916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/migrations/migrate_rao.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn migrate_rao<T: Config>() -> Weight {
3131
weight = weight.saturating_add(T::DbWeight::get().reads_writes(netuids.len() as u64, 0));
3232

3333
// Set the Dynamic block.
34-
DynamicBlock::<T>::insert(netuid, Pallet::<T>::get_current_block_as_u64() );
34+
DynamicBlock::<T>::set( Pallet::<T>::get_current_block_as_u64() );
3535

3636
// Migrate all TAO to root.
3737
Stake::<T>::iter().for_each(|(hotkey, coldkey, stake)| {

0 commit comments

Comments
 (0)