Skip to content

XCM precompile: don't support older xcm versions #9126

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

franciscoaguirre
Copy link
Contributor

The latest XCM version is 5. A lot of parachains are still running V3 or V4 which is why we haven't removed them, but the XCM precompile is new and should only have to deal with versions 5 and onwards. No need to keep dragging 3 and 4 in contracts.

@franciscoaguirre franciscoaguirre requested a review from a team as a code owner July 8, 2025 01:56
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/16132128694
Failed job name: test-linux-stable-no-try-runtime

@@ -76,6 +76,12 @@ where
)
.map_err(|error| revert(&error, "XCM send failed: Invalid message format"))?;

// We don't allow older XCM versions.
let version = final_message.identify_version();
if version == v3::VERSION || version == v4::VERSION {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about this?

Suggested change
if version == v3::VERSION || version == v4::VERSION {
if version < v5::VERSION {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants