Fix `XcmPaymentApi::query_weight_to_asset_fee` version conversion (#6459)
The `query_weight_to_asset_fee` function was trying to convert versions by using `try_as`, this function [doesn't convert from a versioned to a concrete type](https://github.com/paritytech/polkadot-sdk/blob/0156ca8f/polkadot/xcm/src/lib.rs#L131). This would cause all calls with a lower version to fail. The correct function to use is the good old [try_into](https://github.com/paritytech/polkadot-sdk/blob/0156ca8f /polkadot/xcm/src/lib.rs#L184). Now those calls work :) --------- Co-authored-by: command-bot <> Co-authored-by: Branislav Kontur <[email protected]> Co-authored-by: GitHub Action <[email protected]>
parent
fc315ac5
Pipeline
#507113
waiting for manual action
with stages
in
1 hour, 10 minutes, and 7 seconds
Please register or sign in to comment