mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
Use log::error! for bad mandatory (#8521)
To make the life of people easier ;)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
use crate::{limits::BlockWeights, Config, Pallet};
|
||||
use codec::{Encode, Decode};
|
||||
use sp_runtime::{
|
||||
traits::{SignedExtension, DispatchInfoOf, Dispatchable, PostDispatchInfoOf, Printable},
|
||||
traits::{SignedExtension, DispatchInfoOf, Dispatchable, PostDispatchInfoOf},
|
||||
transaction_validity::{
|
||||
ValidTransaction, TransactionValidityError, InvalidTransaction, TransactionValidity,
|
||||
TransactionPriority,
|
||||
@@ -248,9 +248,7 @@ impl<T: Config + Send + Sync> SignedExtension for CheckWeight<T> where
|
||||
// to them actually being useful. Block producers are thus not allowed to include mandatory
|
||||
// extrinsics that result in error.
|
||||
if let (DispatchClass::Mandatory, Err(e)) = (info.class, result) {
|
||||
"Bad mandatory".print();
|
||||
e.print();
|
||||
|
||||
log::error!(target: "runtime::system", "Bad mandatory: {:?}", e);
|
||||
Err(InvalidTransaction::BadMandatory)?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user