mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 14:11:09 +00:00
Fixes
This commit is contained in:
@@ -240,7 +240,8 @@ pub mod pallet {
|
||||
Ok(Weight::zero())
|
||||
},
|
||||
Ok(Ok(x)) => {
|
||||
let outcome = T::XcmExecutor::execute_xcm(Parent, x, message_id, limit.ref_time());
|
||||
let outcome =
|
||||
T::XcmExecutor::execute_xcm(Parent, x, message_id, limit.ref_time());
|
||||
match outcome {
|
||||
Outcome::Error(XcmError::WeightLimitReached(required)) =>
|
||||
Err((message_id, Weight::from_ref_time(required))),
|
||||
|
||||
@@ -284,7 +284,8 @@ fn check_inherents_are_unsigned_and_before_all_other_extrinsics() {
|
||||
.expect("Runs the test");
|
||||
assert!(output.status.success());
|
||||
|
||||
assert!(String::from_utf8(output.stderr).unwrap()
|
||||
assert!(String::from_utf8(output.stderr)
|
||||
.unwrap()
|
||||
.contains("Could not find `set_validation_data` inherent"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,8 @@ impl<T: Config> DmpMessageHandler for LimitAndDropDmpExecution<T> {
|
||||
Ok(Err(())) => Pallet::<T>::deposit_event(Event::UnsupportedVersion(id)),
|
||||
Ok(Ok(x)) => {
|
||||
let weight_limit = limit.saturating_sub(used);
|
||||
let outcome = T::XcmExecutor::execute_xcm(Parent, x, id, weight_limit.ref_time());
|
||||
let outcome =
|
||||
T::XcmExecutor::execute_xcm(Parent, x, id, weight_limit.ref_time());
|
||||
used += Weight::from_ref_time(outcome.weight_used());
|
||||
Pallet::<T>::deposit_event(Event::ExecutedDownward(id, outcome));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user