@@ -28,20 +28,20 @@ use super::protos::{
2828 CallGasLimitTooLow , CallHadValue , CalledBannedEntryPointMethod , CodeHashChanged , DidNotRevert ,
2929 DiscardedOnInsertError , Entity , EntityThrottledError , EntityType , EntryPointRevert ,
3030 ExecutionGasLimitEfficiencyTooLow , ExistingSenderWithInitCode , FactoryCalledCreate2Twice ,
31- FactoryIsNotContract , FactoryMustBeEmpty , InvalidAccountSignature , InvalidPaymasterSignature ,
32- InvalidSignature , InvalidStorageAccess , InvalidTimeRange , MaxFeePerGasTooLow ,
33- MaxOperationsReachedError , MaxPriorityFeePerGasTooLow , MempoolError as ProtoMempoolError ,
34- MultipleRolesViolation , NotStaked , OperationAlreadyKnownError , OperationDropTooSoon ,
35- OperationRevert , OutOfGas , OverMaxCost , PanicRevert , PaymasterBalanceTooLow ,
36- PaymasterDepositTooLow , PaymasterIsNotContract , PreVerificationGasTooLow ,
37- PrecheckViolationError as ProtoPrecheckViolationError , ReplacementUnderpricedError ,
38- SenderAddressUsedAsAlternateEntity , SenderFundsTooLow , SenderIsNotContractAndNoInitCode ,
39- SimulationViolationError as ProtoSimulationViolationError , TooManyExpectedStorageSlots ,
40- TotalGasLimitTooHigh , UnintendedRevert , UnintendedRevertWithMessage , UnknownEntryPointError ,
41- UnknownRevert , UnstakedPaymasterContext , UseUnsupportedEip , UsedForbiddenOpcode ,
42- UsedForbiddenPrecompile , ValidationRevert as ProtoValidationRevert ,
43- VerificationGasLimitBufferTooLow , VerificationGasLimitEfficiencyTooLow ,
44- VerificationGasLimitTooHigh , WrongNumberOfPhases ,
31+ FactoryIsNotContract , FactoryMustBeEmpty , Invalid7702AuthSignature , InvalidAccountSignature ,
32+ InvalidPaymasterSignature , InvalidSignature , InvalidStorageAccess , InvalidTimeRange ,
33+ MaxFeePerGasTooLow , MaxOperationsReachedError , MaxPriorityFeePerGasTooLow ,
34+ MempoolError as ProtoMempoolError , MultipleRolesViolation , NotStaked ,
35+ OperationAlreadyKnownError , OperationDropTooSoon , OperationRevert , OutOfGas , OverMaxCost ,
36+ PanicRevert , PaymasterBalanceTooLow , PaymasterDepositTooLow , PaymasterIsNotContract ,
37+ PreVerificationGasTooLow , PrecheckViolationError as ProtoPrecheckViolationError ,
38+ ReplacementUnderpricedError , SenderAddressUsedAsAlternateEntity , SenderFundsTooLow ,
39+ SenderIsNotContractAndNoInitCode , SimulationViolationError as ProtoSimulationViolationError ,
40+ TooManyExpectedStorageSlots , TotalGasLimitTooHigh , UnintendedRevert ,
41+ UnintendedRevertWithMessage , UnknownEntryPointError , UnknownRevert , UnstakedPaymasterContext ,
42+ UseUnsupportedEip , UsedForbiddenOpcode , UsedForbiddenPrecompile ,
43+ ValidationRevert as ProtoValidationRevert , VerificationGasLimitBufferTooLow ,
44+ VerificationGasLimitEfficiencyTooLow , VerificationGasLimitTooHigh , WrongNumberOfPhases ,
4545} ;
4646
4747impl TryFrom < ProtoMempoolError > for PoolError {
@@ -141,6 +141,9 @@ impl TryFrom<ProtoMempoolError> for MempoolError {
141141 Some ( mempool_error:: Error :: UseUnsupportedEip ( e) ) => {
142142 MempoolError :: EIPNotSupported ( e. eip_name )
143143 }
144+ Some ( mempool_error:: Error :: Invalid7702AuthSignature ( e) ) => {
145+ MempoolError :: Invalid7702AuthSignature ( e. reason )
146+ }
144147 None => bail ! ( "unknown proto mempool error" ) ,
145148 } )
146149 }
@@ -270,6 +273,11 @@ impl From<MempoolError> for ProtoMempoolError {
270273 eip_name : msg,
271274 } ) ) ,
272275 } ,
276+ MempoolError :: Invalid7702AuthSignature ( msg) => ProtoMempoolError {
277+ error : Some ( mempool_error:: Error :: Invalid7702AuthSignature (
278+ Invalid7702AuthSignature { reason : msg } ,
279+ ) ) ,
280+ } ,
273281 }
274282 }
275283}
0 commit comments