This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Description
Hi,
In AllowTopLevelPaidExecutionFrom (here), when processing BuyExecution we do it like this:
BuyExecution { weight_limit: Limited(ref mut weight), .. } if *weight >= max_weight => { <==== THIS CHECK
*weight = max_weight;
Ok(())
},
BuyExecution { ref mut weight_limit, .. } if weight_limit == &Unlimited => {
*weight_limit = Limited(max_weight);
Ok(())
},
_ => Err(()),
}
Regarding the first arm, should we also be Ok(()) in case weight is below max_weight?
It seems like an error to me but I'm skeptical of my own understanding since it hasn't been noticed by now 😅