diff --git a/src/rpc/validation/UnsafeValidator.ts b/src/rpc/validation/UnsafeValidator.ts index dcc75f96..3ade6578 100644 --- a/src/rpc/validation/UnsafeValidator.ts +++ b/src/rpc/validation/UnsafeValidator.ts @@ -130,6 +130,7 @@ export class UnsafeValidator implements InterfaceValidator { const revertError = errorResult.walk( (err) => err instanceof ContractFunctionExecutionError ) + this.logger.info("[DEBUG] errorResult instanceof BaseError") throw new RpcError( `UserOperation reverted during simulation with reason: ${ // biome-ignore lint/suspicious/noExplicitAny: it's a generic type @@ -151,6 +152,7 @@ export class UnsafeValidator implements InterfaceValidator { if (errorData.errorName === "FailedOp") { const reason = errorData.args.reason + this.logger.info("[DEBUG] errorData.errorName === FailedOp") throw new RpcError( `UserOperation reverted during simulation with reason: ${reason}`, ValidationErrors.SimulateValidation @@ -201,6 +203,7 @@ export class UnsafeValidator implements InterfaceValidator { ) if (error.result === "failed") { + this.logger.info("[DEBUG] error.result === failed") throw new RpcError( `UserOperation reverted during simulation with reason: ${error.data}`, ExecutionErrors.UserOperationReverted @@ -299,6 +302,7 @@ export class UnsafeValidator implements InterfaceValidator { // validate runtime if (runtimeValidation.result === "failed") { + this.logger.info("[DEBUG] runtimeValidation.result === failed") throw new RpcError( `UserOperation reverted during simulation with reason: ${runtimeValidation.data}`, ValidationErrors.SimulateValidation