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

Commit fb48a45

Browse files
gavofyorkapopiak
authored andcommitted
Fix use of weight limit errors (#791)
1 parent fc143ed commit fb48a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/xcmp-queue/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ impl<T: Config> Pallet<T> {
382382
let weight = max_weight - weight_used;
383383
match Self::handle_xcm_message(sender, sent_at, xcm, weight) {
384384
Ok(used) => weight_used = weight_used.saturating_add(used),
385-
Err(XcmError::TooMuchWeightRequired) => {
385+
Err(XcmError::WeightLimitReached(required)) if required <= max_weight => {
386386
// That message didn't get processed this time because of being
387387
// too heavy. We leave it around for next time and bail.
388388
remaining_fragments = last_remaining_fragments;

0 commit comments

Comments
 (0)