Skip to content

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

Merged
muharem merged 2 commits into
masterfrom
muharem-xcm-pay-try-covert
Sep 18, 2023
Merged

xcm-builder: PayOverXcm supports fallible convertors for asset kind and beneficiary conversion #1572
muharem merged 2 commits into
masterfrom
muharem-xcm-pay-try-covert

Conversation

@muharem

@muharem muharem commented Sep 14, 2023

Copy link
Copy Markdown
Contributor

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
@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.

4 participants