Required weight is returned in case it exceeds limit. (#2952)

This commit is contained in:
Gavin Wood
2021-04-28 18:24:39 +02:00
committed by GitHub
parent 9c60982989
commit c0bf7e3d8c
4 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -43,7 +43,9 @@ pub enum Error {
BadOrigin,
ExceedsMaxMessageSize,
FailedToTransactAsset(#[codec(skip)] &'static str),
WeightLimitReached,
/// Execution of the XCM would potentially result in a greater weight used than the pre-specified
/// weight limit. The amount that is potentially required is the parameter.
WeightLimitReached(Weight),
Wildcard,
/// The case where an XCM message has specified a optional weight limit and the weight required for
/// processing is too great.