Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
const authored and const committed Jul 22, 2024
1 parent 659b53c commit b8cfd6c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pallets/commitments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,6 @@ pub mod pallet {

Ok(())
}

pub fn swap_commitment( netuid: u16, new_hotkey: T::AccountId, old_hotkey: T::AccountId ) {
if let Some(commitment) = <CommitmentOf<T>>::take(netuid, &old_hotkey) {
<CommitmentOf<T>>::insert(netuid, &new_hotkey, commitment);
}
if let Some(last_commit) = <LastCommitment<T>>::take(netuid, &old_hotkey) {
<LastCommitment<T>>::insert(netuid, &new_hotkey, last_commit);
}
}
}
}

Expand Down

0 comments on commit b8cfd6c

Please sign in to comment.