mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 07:41:08 +00:00
pallet-contracts migration pre-upgrade fix for v8 (#12905)
* Only run pre-v8 migration check for versions older than 8 * Logix fix
This commit is contained in:
@@ -69,7 +69,7 @@ impl<T: Config> OnRuntimeUpgrade for Migration<T> {
|
||||
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
|
||||
let version = <Pallet<T>>::on_chain_storage_version();
|
||||
|
||||
if version == 8 {
|
||||
if version == 7 {
|
||||
v8::pre_upgrade::<T>()?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user