diff --git a/Cargo.lock b/Cargo.lock index 53a23761..883cf9bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6776,7 +6776,6 @@ dependencies = [ "frame-support", "frame-system", "log", - "pallet-balances", "pallet-membership", "pallet-session", "parity-scale-codec", diff --git a/pallets/btc-registration-pool/src/pallet/impls.rs b/pallets/btc-registration-pool/src/pallet/impls.rs index b7bc9b00..1603bc33 100644 --- a/pallets/btc-registration-pool/src/pallet/impls.rs +++ b/pallets/btc-registration-pool/src/pallet/impls.rs @@ -96,14 +96,14 @@ impl PoolManager for Pallet { } fn replace_authority(old: &T::AccountId, new: &T::AccountId) { - let round = Self::current_round(); + let round = CurrentRound::::get(); // move pre-submitted pub keys from old to new let pre_submitted_pub_keys = >::take(round, old); if !pre_submitted_pub_keys.is_empty() { >::insert(round, new, pre_submitted_pub_keys); } // replace authority in system vault (if it's pending) - if let Some(mut vault) = Self::system_vault(round) { + if let Some(mut vault) = SystemVault::::get(round) { if vault.address == AddressState::Pending { vault.replace_authority(old, new); }