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

xcm-builder: PayOverXcm supports fallible convertors for asset kind and beneficiary conversion #1572

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Sep 14, 2023

PayOverXcm type accepts two converters to transform the AssetKind and Beneficiary parameter types into recognized xcm types. In this PR, we've modified the bounds for these converters, transitioning from Convert to TryConvert.

One such use case for this adjustment is when dealing with versioned xcm types for AssetKind and Beneficiary. These types might be not convertible to the latest xcm version, hence the need for fallible conversion.

This changes required for #1333

@muharem muharem added the T6-XCM This PR/Issue is related to XCM. label Sep 14, 2023
@muharem muharem requested a review from a team as a code owner September 14, 2023 14:28
@muharem muharem merged commit a8e82a3 into master Sep 18, 2023
13 checks passed
@muharem muharem deleted the muharem-xcm-pay-try-covert branch September 18, 2023 09:04
@muharem muharem added the T4-runtime_API This PR/Issue is related to runtime APIs. label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T4-runtime_API This PR/Issue is related to runtime APIs. T6-XCM This PR/Issue is related to XCM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants