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:
Dino Pačandi
2022-12-13 12:09:26 +01:00
committed by GitHub
parent 0b0cceff0d
commit dff246e815
+1 -1
View File
@@ -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>()?;
}