Skip to content
Snippets Groups Projects
Unverified Commit f798111a authored by Sebastian Kunert's avatar Sebastian Kunert Committed by GitHub
Browse files

Fix reversed error message in DispatchInfo (#7170)


Fix error message in `DispatchInfo` where post-dispatch and pre-dispatch
weight was reversed.

---------

Co-authored-by: command-bot <>
Co-authored-by: default avatarBastian Köcher <git@kchr.de>
parent 0d660a42
No related merge requests found
Pipeline #511847 waiting for manual action with stages
in 56 minutes and 43 seconds
title: Fix reversed error message in DispatchInfo
doc:
- audience: Runtime Dev
description: "Fix error message in `DispatchInfo` where post-dispatch and pre-dispatch\
\ weight was reversed.\r\n"
crates:
- name: frame-support
bump: patch
...@@ -315,10 +315,8 @@ impl PostDispatchInfo { ...@@ -315,10 +315,8 @@ impl PostDispatchInfo {
"Post dispatch weight is greater than pre dispatch weight. \ "Post dispatch weight is greater than pre dispatch weight. \
Pre dispatch weight may underestimating the actual weight. \ Pre dispatch weight may underestimating the actual weight. \
Greater post dispatch weight components are ignored. Greater post dispatch weight components are ignored.
Pre dispatch weight: {:?}, Pre dispatch weight: {info_total_weight:?},
Post dispatch weight: {:?}", Post dispatch weight: {actual_weight:?}",
actual_weight,
info_total_weight,
); );
} }
actual_weight.min(info.total_weight()) actual_weight.min(info.total_weight())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment