Skip to content
Unverified Commit 139691b1 authored by Francisco Aguirre's avatar Francisco Aguirre Committed by GitHub
Browse files

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: default avatarBranislav Kontur <[email protected]>
Co-authored-by: default avatarGitHub Action <[email protected]>
parent fc315ac5
Pipeline #507113 waiting for manual action with stages
in 1 hour, 10 minutes, and 7 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment