-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix duplicate codec indexes #7446
Conversation
83259de
to
ace68f6
Compare
@@ -209,6 +209,7 @@ pub fn expand_outer_origin( | |||
system(#system_path::Origin<#runtime>), | |||
#caller_variants | |||
#[allow(dead_code)] | |||
#[codec(skip)] | |||
Void(#scrate::__private::Void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For context: The void type can't be instantiated, it can't be decoded as well. So skipping the variant keeps the same behavior.
37446fc
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-7446-to-stable2407
git worktree add --checkout .worktree/backport-7446-to-stable2407 backport-7446-to-stable2407
cd .worktree/backport-7446-to-stable2407
git reset --hard HEAD^
git cherry-pick -x 37446fcbb05150cd304fde157f87e9004f203403
git push --force-with-lease |
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-7446-to-stable2409
git worktree add --checkout .worktree/backport-7446-to-stable2409 backport-7446-to-stable2409
cd .worktree/backport-7446-to-stable2409
git reset --hard HEAD^
git cherry-pick -x 37446fcbb05150cd304fde157f87e9004f203403
git push --force-with-lease |
Successfully created backport PR for |
Backport #7446 into `stable2409` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Backport #7446 into `stable2407` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Backport #7446 into `stable2412` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Related to #7400 and #7417
We need this in order to be able to update
parity-scale-codec
to the latest version after it's released. That's becauseparity-scale-codec
added support for checking for duplicate indexes at compile time.