From 3e9cc17afea3bf077069d5114d850a0fc3dbbb32 Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Tue, 13 Dec 2022 21:12:30 +0900 Subject: [PATCH] Fixes --- xcm/xcm-builder/src/barriers.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xcm/xcm-builder/src/barriers.rs b/xcm/xcm-builder/src/barriers.rs index 3dd1d833943f..5e58e9cd22f1 100644 --- a/xcm/xcm-builder/src/barriers.rs +++ b/xcm/xcm-builder/src/barriers.rs @@ -252,7 +252,9 @@ impl> ShouldExecute for AllowExplicitUnpaidExecutionF UnpaidExecution { weight_limit: Limited(m), check_origin } if m.all_gte(max_weight) && check_origin.map_or(true, |o| T::contains(&o)) => Ok(()), - UnpaidExecution { weight_limit: Unlimited, .. } => Ok(()), + UnpaidExecution { weight_limit: Unlimited, check_origin } + if check_origin.map_or(true, |o| T::contains(&o)) => + Ok(()), _ => Err(()), } }