Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Ensure max_weight is assigned properly in AllowTopPaidExecutionFrom (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KiChjang authored and bkchr committed Mar 6, 2023
1 parent 72309a2 commit 8deef13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xcm/xcm-builder/src/barriers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl<T: Contains<MultiLocation>> ShouldExecute for AllowTopLevelPaidExecutionFro
BuyExecution { weight_limit: Limited(ref mut weight), .. }
if weight.all_gte(max_weight) =>
{
*weight = weight.max(max_weight);
*weight = max_weight;
Ok(())
},
BuyExecution { ref mut weight_limit, .. } if weight_limit == &Unlimited => {
Expand Down

0 comments on commit 8deef13

Please sign in to comment.