From 87b160e8f60c171862f471a390a78ec03b4f7358 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 18 Oct 2023 03:47:48 +1300 Subject: [PATCH] increase MAX_ASSETS_FOR_BUY_EXECUTION (#1733) Partially addresses #1638 Still need a better solution to allow devs to have better control of this. --------- Co-authored-by: Keith Yeung Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/xcm-builder/src/barriers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/xcm-builder/src/barriers.rs b/polkadot/xcm/xcm-builder/src/barriers.rs index 0d04e0971bf7..3b13cab2c1ea 100644 --- a/polkadot/xcm/xcm-builder/src/barriers.rs +++ b/polkadot/xcm/xcm-builder/src/barriers.rs @@ -52,7 +52,7 @@ impl ShouldExecute for TakeWeightCredit { } } -const MAX_ASSETS_FOR_BUY_EXECUTION: usize = 1; +const MAX_ASSETS_FOR_BUY_EXECUTION: usize = 2; /// Allows execution from `origin` if it is contained in `T` (i.e. `T::Contains(origin)`) taking /// payments into account.