Skip to content

Conversation

@karolk91
Copy link
Contributor

Reverts #9842

Following on the discussion at #10391, we don't want to sort at decode level but rather to not require sorting at all among the codebase

@karolk91 karolk91 self-assigned this Nov 28, 2025
@karolk91 karolk91 added T6-XCM This PR/Issue is related to XCM. A4-backport-stable2512 Pull request must be backported to the stable2512 release branch labels Nov 28, 2025
@karolk91 karolk91 marked this pull request as ready for review December 2, 2025 07:34
@karolk91 karolk91 requested a review from a team as a code owner December 2, 2025 07:34
pub fn from_sorted_and_deduplicated_skip_checks(r: Vec<MultiAsset>) -> Self {
Self::from_sorted_and_deduplicated(r).expect("Invalid input r is not sorted/deduped")
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert?
there is a newline between all functions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a revert of #9842 so it reverts all the changes that 9842 introduced even new added new lines

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I understand, but can we un-revert this change as part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I've missed last comment here but still I think it was better to revert exactly the thing without any modifications (even new lines).

If there is some formatting inconsistency I think its better to fix this on the formatter config level anyway

@acatangiu acatangiu added the R0-no-crate-publish-required The change does not require any crates to be re-published. label Dec 3, 2025
Copy link
Contributor

@franciscoaguirre franciscoaguirre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think deleting the prdoc and putting the "silent" label on this PR makes sense

@karolk91 karolk91 enabled auto-merge December 4, 2025 06:41
@karolk91 karolk91 added this pull request to the merge queue Dec 4, 2025
Merged via the queue into master with commit 34034a9 Dec 4, 2025
250 of 257 checks passed
@karolk91 karolk91 deleted the revert-9842-bkchr-xcm-assets-sort branch December 4, 2025 08:49
@paritytech-release-backport-bot

Created backport PR for stable2512:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-10459-to-stable2512
git worktree add --checkout .worktree/backport-10459-to-stable2512 backport-10459-to-stable2512
cd .worktree/backport-10459-to-stable2512
git reset --hard HEAD^
git cherry-pick -x 34034a943bf67268f9e59a991f00eef1ff1fb9c8
git push --force-with-lease

karolk91 added a commit that referenced this pull request Dec 4, 2025
Reverts #9842

Following on the discussion at
#10391, we don't want
to sort at decode level but rather to not require sorting at all among
the codebase

(cherry picked from commit 34034a9)
karolk91 added a commit that referenced this pull request Dec 4, 2025
Backport #10459 into `stable2512` from karolk91.

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: Karol Kokoszka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2512 Pull request must be backported to the stable2512 release branch R0-no-crate-publish-required The change does not require any crates to be re-published. T6-XCM This PR/Issue is related to XCM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants