Skip to content
Snippets Groups Projects
Unverified Commit 963f0d73 authored by Daniel Shiposha's avatar Daniel Shiposha Committed by GitHub
Browse files

Fix DryRunApi client-facing XCM versions (#7438)


# Description

Fixes #7413

## Integration

This PR updates the `DryRunApi`. The signature of the `dry_run_call` is
changed, and the XCM version of the return values of `dry_run_xcm` now
follows the version of the input XCM program.

## Review Notes

* **The `DryRunApi` is modified**
* **Added the `Router::clear_messages` to `dry_run_xcm` common
implementation**
* **Fixed the xcmp-queue's Router's clear_messages: channels details'
first_index and last_index are reset when clearing**
* **The MIN_XCM_VERSION is added**
* The common implementation in the `pallet-xcm` is modified accordingly
* The `DryRunApi` tests are modified to account for testing old XCM
versions
* The implementation from the `pallet-xcm` is used where it was not used
(including the `DryRunApi` tests)
* All the runtime implementations are modified according to the Runtime
API change

---------

Co-authored-by: default avatarAdrian Catangiu <adrian@parity.io>
parent d189f9e7
Pipeline #516677 waiting for manual action with stages
in 15 minutes and 11 seconds
Showing
with 196 additions and 235 deletions
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