@@ -26,7 +26,7 @@ use crate::{
2626 evm:: api:: { recover_eth_address_from_message, AuthorizationListEntry } ,
2727 storage:: AccountInfo ,
2828 weights:: WeightInfo ,
29- Config ,
29+ Config , LOG_TARGET ,
3030} ;
3131use alloc:: vec:: Vec ;
3232use frame_support:: { dispatch:: DispatchResult , weights:: WeightMeter } ;
@@ -90,7 +90,7 @@ pub(crate) fn validate_authorization<T: Config>(
9090) -> Option < ( H160 , bool ) > {
9191 if !auth. chain_id . is_zero ( ) && auth. chain_id != chain_id {
9292 log:: debug!(
93- target: crate :: LOG_TARGET ,
93+ target: LOG_TARGET ,
9494 "Invalid chain_id in authorization: expected {chain_id:?} or 0, got {:?}" ,
9595 auth. chain_id
9696 ) ;
@@ -101,7 +101,7 @@ pub(crate) fn validate_authorization<T: Config>(
101101 Ok ( nonce) => nonce,
102102 Err ( _) => {
103103 log:: debug!(
104- target: crate :: LOG_TARGET ,
104+ target: LOG_TARGET ,
105105 "Authorization nonce too large: {:?}" ,
106106 auth. nonce
107107 ) ;
@@ -112,7 +112,7 @@ pub(crate) fn validate_authorization<T: Config>(
112112 let authority = match recover_authority ( auth) {
113113 Ok ( addr) => addr,
114114 Err ( _) => {
115- log:: debug!( target: crate :: LOG_TARGET , "Failed to recover authority from signature" ) ;
115+ log:: debug!( target: LOG_TARGET , "Failed to recover authority from signature" ) ;
116116 return None ;
117117 } ,
118118 } ;
@@ -123,7 +123,7 @@ pub(crate) fn validate_authorization<T: Config>(
123123
124124 if current_nonce != expected_nonce {
125125 log:: debug!(
126- target: crate :: LOG_TARGET ,
126+ target: LOG_TARGET ,
127127 "Nonce mismatch for {authority:?}: expected {expected_nonce:?}, got {current_nonce:?}" ,
128128 ) ;
129129 return None ;
@@ -132,7 +132,7 @@ pub(crate) fn validate_authorization<T: Config>(
132132 // Verify account is not a contract (but delegated accounts are allowed)
133133 if AccountInfo :: < T > :: is_contract ( & authority) {
134134 log:: debug!(
135- target: crate :: LOG_TARGET ,
135+ target: LOG_TARGET ,
136136 "Account {authority:?} has non-delegation code" ,
137137 ) ;
138138 return None ;
@@ -152,7 +152,7 @@ pub(crate) fn apply_delegation<T: Config>(authority: &H160, target_address: H160
152152 } else {
153153 if let Err ( e) = AccountInfo :: < T > :: set_delegation ( authority, target_address) {
154154 log:: debug!(
155- target: crate :: LOG_TARGET ,
155+ target: LOG_TARGET ,
156156 "Failed to set delegation for {authority:?}: {e:?}" ,
157157 ) ;
158158 return ;
0 commit comments