Dispatchable XCMs should translate to v0 (#4062)

* Dispatchable XCMs should translate to v0

* Formatting

* Update Westend's XCM WrapVersion
This commit is contained in:
Gavin Wood
2021-10-12 15:35:10 +02:00
committed by GitHub
parent 67032af69f
commit 533cdb6e7c
6 changed files with 54 additions and 21 deletions
+5
View File
@@ -310,6 +310,11 @@ pub(crate) fn buy_execution<C>(fees: impl Into<MultiAsset>) -> Instruction<C> {
BuyExecution { fees: fees.into(), weight_limit: Unlimited }
}
pub(crate) fn buy_limited_execution<C>(fees: impl Into<MultiAsset>, weight: u64) -> Instruction<C> {
use xcm::latest::prelude::*;
BuyExecution { fees: fees.into(), weight_limit: Limited(weight) }
}
pub(crate) fn new_test_ext_with_balances(
balances: Vec<(AccountId, Balance)>,
) -> sp_io::TestExternalities {