xcm-builder: PayOverXcm supports fallible convertors for asset kind and...
xcm-builder: PayOverXcm supports fallible convertors for asset kind and beneficiary conversion (#1572) `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 https://github.com/paritytech/polkadot-sdk/pull/1333
parent
e3899880
No related branches found
No related tags found
Checking pipeline status
Showing
- polkadot/xcm/xcm-builder/src/location_conversion.rs 4 additions, 4 deletionspolkadot/xcm/xcm-builder/src/location_conversion.rs
- polkadot/xcm/xcm-builder/src/pay.rs 10 additions, 8 deletionspolkadot/xcm/xcm-builder/src/pay.rs
- polkadot/xcm/xcm-builder/src/tests/pay/pay.rs 3 additions, 3 deletionspolkadot/xcm/xcm-builder/src/tests/pay/pay.rs
Loading
Please register or sign in to comment