Skip to content

Commit

Permalink
Ensure max_weight is assigned properly in AllowTopPaidExecutionFrom (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
tgmichel committed Mar 14, 2023
1 parent 56904b7 commit 89dcd36
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 89dcd36

Please sign in to comment.