Skip to content
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!: Patch XCM Executor #526

Merged
merged 7 commits into from
Jul 15, 2022
Merged

fix!: Patch XCM Executor #526

merged 7 commits into from
Jul 15, 2022

Conversation

apopiak
Copy link
Collaborator

@apopiak apopiak commented Jul 14, 2022

Use a patched version of Polkadot that fixes the XCM executor to trap assets on failed instructions.

Description

This PR adds an integration test for asset trapping on receiving unknown assets and uses a patched Polkadot version that ensures the asset is trapped (and not burned).

Related Issue

Based on paritytech/polkadot@release-v0.9.17...apopiak:polkadot:apopiak/fix-xcm-executor-atomicity

Motivation and Context

Assets that are not recognized on BuyExecution (and thus trigger an error) get burned in the XCMv2 executor.

How Has This Been Tested?

  • runtime integration test

Checklist:

  • I have updated the documentation if necessary.
  • I have added tests to cover my changes, regression test if fixing an issue.
  • This is a breaking change.

@apopiak apopiak marked this pull request as ready for review July 14, 2022 15:54
@github-actions
Copy link

github-actions bot commented Jul 14, 2022

Crate versions that have been updated:

  • runtime-integration-tests: v0.5.0 -> v0.5.1
  • basilisk-runtime: v66.0.0 -> v67.0.0
  • testing-basilisk-runtime: v66.0.0 -> v67.0.0

Runtime version has been increased.

@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #526 (745e73d) into master (4182ff3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head 745e73d differs from pull request most recent head b06bf46. Consider uploading reports for the commit b06bf46 to get more accurate results

@@            Coverage Diff             @@
##           master     #526      +/-   ##
==========================================
+ Coverage   81.21%   81.24%   +0.02%     
==========================================
  Files          19       20       +1     
  Lines        1927     1930       +3     
==========================================
+ Hits         1565     1568       +3     
  Misses        362      362              
Impacted Files Coverage Δ
integration-tests/src/lib.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4182ff3...b06bf46. Read the comment docs.

@mrq1911
Copy link
Member

mrq1911 commented Jul 14, 2022

Task linked: CU-2rgt0pz Patch XCM executor

Copy link
Contributor

@enthusiastmartin enthusiastmartin left a comment

Choose a reason for hiding this comment

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

just minor suggestions.

integration-tests/src/cross_chain_transfer.rs Outdated Show resolved Hide resolved
integration-tests/src/lib.rs Outdated Show resolved Hide resolved
mrq1911 and others added 2 commits July 15, 2022 17:18
@mrq1911 mrq1911 merged commit a11bf03 into master Jul 15, 2022
@jak-pan jak-pan deleted the apopiak/patch-xcm-executor branch February 22, 2024 10:57
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.

3 participants