mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Remove all stale on_runtime_upgrade hooks in the runtime (#10650)
* Remove all stale on_runtime_upgrade hooks in the runtime * add docs * cleanup * fix warn * fix more warnings * fix offence test * overwrite the damn UItest
This commit is contained in:
@@ -56,8 +56,7 @@ pub fn remove_deferred_storage<T: Config>() -> Weight {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::mock::{new_test_ext, with_on_offence_fractions, Offences, Runtime as T};
|
||||
use frame_support::traits::OnRuntimeUpgrade;
|
||||
use crate::mock::{new_test_ext, with_on_offence_fractions, Runtime as T};
|
||||
use sp_runtime::Perbill;
|
||||
use sp_staking::offence::OffenceDetails;
|
||||
|
||||
@@ -87,7 +86,7 @@ mod test {
|
||||
|
||||
// when
|
||||
assert_eq!(
|
||||
Offences::on_runtime_upgrade(),
|
||||
remove_deferred_storage::<T>(),
|
||||
<T as frame_system::Config>::DbWeight::get().reads_writes(1, 1),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user