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 <bkontur@gmail.com> Co-authored-by:
GitHub Action <action@github.com>
Showing
- Cargo.lock 13 additions, 0 deletionsCargo.lock
- cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml 1 addition, 0 deletions...us/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs 11 additions, 17 deletions...us/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs 20 additions, 4 deletions...arachains/runtimes/assets/asset-hub-rococo/tests/tests.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml 1 addition, 0 deletions...s/parachains/runtimes/assets/asset-hub-westend/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs 11 additions, 18 deletions...s/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/tests/tests.rs 17 additions, 1 deletion...rachains/runtimes/assets/asset-hub-westend/tests/tests.rs
- cumulus/parachains/runtimes/assets/common/src/lib.rs 58 additions, 21 deletionscumulus/parachains/runtimes/assets/common/src/lib.rs
- cumulus/parachains/runtimes/assets/test-utils/Cargo.toml 4 additions, 0 deletionscumulus/parachains/runtimes/assets/test-utils/Cargo.toml
- cumulus/parachains/runtimes/assets/test-utils/src/test_cases.rs 109 additions, 1 deletion...s/parachains/runtimes/assets/test-utils/src/test_cases.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml 1 addition, 0 deletions...achains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs 2 additions, 1 deletion...achains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/tests/tests.rs 13 additions, 3 deletions...ins/runtimes/bridge-hubs/bridge-hub-rococo/tests/tests.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml 1 addition, 0 deletions...chains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs 2 additions, 1 deletion...chains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/tests/tests.rs 13 additions, 3 deletions...ns/runtimes/bridge-hubs/bridge-hub-westend/tests/tests.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/Cargo.toml 1 addition, 0 deletions...hains/runtimes/collectives/collectives-westend/Cargo.toml
- cumulus/parachains/runtimes/collectives/collectives-westend/src/lib.rs 2 additions, 1 deletion...hains/runtimes/collectives/collectives-westend/src/lib.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/tests/tests.rs 13 additions, 1 deletion...s/runtimes/collectives/collectives-westend/tests/tests.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml 4 additions, 0 deletions...s/parachains/runtimes/coretime/coretime-rococo/Cargo.toml
Please register or sign in to comment