mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Required weight is returned in case it exceeds limit. (#2952)
This commit is contained in:
@@ -73,7 +73,7 @@ impl<XcmExecutor: xcm::v0::ExecuteXcm<Call>, Call> UmpSink for XcmSink<XcmExecut
|
||||
let xcm_location: MultiLocation = xcm_junction.into();
|
||||
match XcmExecutor::execute_xcm(xcm_location, xcm_message, max_weight) {
|
||||
Outcome::Complete(w) | Outcome::Incomplete(w, _) => Some(w),
|
||||
Outcome::Error(XcmError::WeightLimitReached) => None,
|
||||
Outcome::Error(XcmError::WeightLimitReached(..)) => None,
|
||||
Outcome::Error(_) => Some(0),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user