Skip to content
Snippets Groups Projects
Commit dff246e8 authored by Dino Pačandi's avatar Dino Pačandi Committed by GitHub
Browse files

pallet-contracts migration pre-upgrade fix for v8 (#12905)

* Only run pre-v8 migration check for versions older than 8

* Logix fix
parent 0b0cceff
No related merge requests found
......@@ -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>()?;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment