mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 12:45:04 +00:00
Ensure max_weight is assigned properly in AllowTopPaidExecutionFrom (#6787)
This commit is contained in:
1 parent
92ee0b7d9f
commit
3df2893bae
1 file changed
+1
-1
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user