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 @@ -1055,13 +1055,20 @@ impl<T> OnCreate<T> for Tuple {
10551055 }
10561056}
10571057
1058+ /// Implements additional EVM transaction validation logic
10581059pub trait OnCheckEvmTransaction < T : Config > {
1060+ /// Validate EVM transaction.
1061+ ///
1062+ /// This method should be called before frontier's built-in validations.
1063+ ///
1064+ /// - `v`: Transaction data to validate. Method can modify transaction data before frontier's built-in validations.
10591065 fn on_check_evm_transaction (
10601066 v : & mut CheckEvmTransaction ,
10611067 origin : & H160 ,
10621068 ) -> Result < ( ) , TransactionValidationError > ;
10631069}
10641070
1071+ /// Implementation for () does not specify any additional validations.
10651072impl < T : Config > OnCheckEvmTransaction < T > for ( ) {
10661073 fn on_check_evm_transaction (
10671074 _v : & mut CheckEvmTransaction ,
You can’t perform that action at this time.
0 commit comments