File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1051,13 +1051,20 @@ impl<T> OnCreate<T> for Tuple {
1051
1051
}
1052
1052
}
1053
1053
1054
+ /// Implements additional EVM transaction validation logic
1054
1055
pub trait OnCheckEvmTransaction < T : Config > {
1056
+ /// Validate EVM transaction.
1057
+ ///
1058
+ /// This method should be called before frontier's built-in validations.
1059
+ ///
1060
+ /// - `v`: Transaction data to validate. Method can modify transaction data before frontier's built-in validations.
1055
1061
fn on_check_evm_transaction (
1056
1062
v : & mut CheckEvmTransaction ,
1057
1063
origin : & H160 ,
1058
1064
) -> Result < ( ) , TransactionValidationError > ;
1059
1065
}
1060
1066
1067
+ /// Implementation for () does not specify any additional validations.
1061
1068
impl < T : Config > OnCheckEvmTransaction < T > for ( ) {
1062
1069
fn on_check_evm_transaction (
1063
1070
_v : & mut CheckEvmTransaction ,
You can’t perform that action at this time.
0 commit comments