Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions prdoc/pr_7170.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
2 changes: 1 addition & 1 deletion substrate/frame/support/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ impl PostDispatchInfo {
Greater post dispatch weight components are ignored.
Pre dispatch weight: {:?},
Post dispatch weight: {:?}",
actual_weight,
info_total_weight,
actual_weight,
);
}
actual_weight.min(info.total_weight())
Expand Down