mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
don't panic if already migrated (#10141)
* don't panic if already migrated * remove condition
This commit is contained in:
@@ -181,7 +181,11 @@ pub mod pallet {
|
||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
|
||||
#[cfg(feature = "try-runtime")]
|
||||
fn pre_upgrade() -> Result<(), &'static str> {
|
||||
migrations::v1::pre_migrate::<T>()
|
||||
if StorageVersion::<T>::get() == Releases::V0 {
|
||||
migrations::v1::pre_migrate::<T>()
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn on_runtime_upgrade() -> Weight {
|
||||
|
||||
Reference in New Issue
Block a user