mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 02:51:08 +00:00
contracts Add LOG_TARGET constant (#14002)
* contracts Add LOG_TARGET constant * Update frame/contracts/src/lib.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> --------- Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
use crate::{
|
||||
storage::{ContractInfo, DepositAccount},
|
||||
BalanceOf, Config, Error, Inspect, Pallet, System,
|
||||
BalanceOf, Config, Error, Inspect, Pallet, System, LOG_TARGET,
|
||||
};
|
||||
use codec::Encode;
|
||||
use frame_support::{
|
||||
@@ -502,7 +502,7 @@ impl<T: Config> Ext<T> for ReservingExt {
|
||||
);
|
||||
if let Err(err) = result {
|
||||
log::error!(
|
||||
target: "runtime::contracts",
|
||||
target: LOG_TARGET,
|
||||
"Failed to transfer storage deposit {:?} from origin {:?} to deposit account {:?}: {:?}",
|
||||
amount, origin, deposit_account, err,
|
||||
);
|
||||
@@ -531,7 +531,7 @@ impl<T: Config> Ext<T> for ReservingExt {
|
||||
);
|
||||
if matches!(result, Err(_)) {
|
||||
log::error!(
|
||||
target: "runtime::contracts",
|
||||
target: LOG_TARGET,
|
||||
"Failed to refund storage deposit {:?} from deposit account {:?} to origin {:?}: {:?}",
|
||||
amount, deposit_account, origin, result,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user