mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
Fix staking migration (#12373)
Causing issues on Kusama... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
70f372ae38
commit
8227950ed5
@@ -40,10 +40,14 @@ pub mod v12 {
|
||||
"Expected v11 before upgrading to v12"
|
||||
);
|
||||
|
||||
frame_support::ensure!(
|
||||
T::HistoryDepth::get() == HistoryDepth::<T>::get(),
|
||||
"Provided value of HistoryDepth should be same as the existing storage value"
|
||||
);
|
||||
if HistoryDepth::<T>::exists() {
|
||||
frame_support::ensure!(
|
||||
T::HistoryDepth::get() == HistoryDepth::<T>::get(),
|
||||
"Provided value of HistoryDepth should be same as the existing storage value"
|
||||
);
|
||||
} else {
|
||||
log::info!("No HistoryDepth in storage; nothing to remove");
|
||||
}
|
||||
|
||||
Ok(Default::default())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user