File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 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 {
10511051 }
10521052}
10531053
1054+ /// Implements additional EVM transaction validation logic
10541055pub 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.
10551061 fn on_check_evm_transaction (
10561062 v : & mut CheckEvmTransaction ,
10571063 origin : & H160 ,
10581064 ) -> Result < ( ) , TransactionValidationError > ;
10591065}
10601066
1067+ /// Implementation for () does not specify any additional validations.
10611068impl < T : Config > OnCheckEvmTransaction < T > for ( ) {
10621069 fn on_check_evm_transaction (
10631070 _v : & mut CheckEvmTransaction ,
You can’t perform that action at this time.
0 commit comments