contracts: Fix incorrect storage alias in mirgration (#1687)#1703
Closed
pgherveou wants to merge 1 commit intorelease-polkadot-v1.1.0from
Closed
contracts: Fix incorrect storage alias in mirgration (#1687)#1703pgherveou wants to merge 1 commit intorelease-polkadot-v1.1.0from
pgherveou wants to merge 1 commit intorelease-polkadot-v1.1.0from
Conversation
# Description We are recently trying to upgrade our Substrate version from `polkadot-v0.9.43` to `polkadot-v1.0.0` and we noticed a critical issue: all deployed contracts seem to be experiencing a `CodeNotFound` error. After a thorough investigation, it appears that the root cause of this issue lies in the mismatch between the storage alias of `CodeInfoOf<T>` in the migration and its original definition. This PR corrects the storage alias to align it with its original definition I am uncertain about the proper approach for adding tests to this change. Would the team consider taking over this PR to bring it to completion? --------- Co-authored-by: pgherveou <pgherveou@gmail.com>
Contributor
Author
|
@kvinwang are you able to just use v1.2.0 branch that was cut after this bug fix? |
Contributor
It's OK to me. However, that would mean |
Contributor
Author
yes unless you start from this branch and don't need migration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backporting a migration bug from #1687 to 1.1.0