From e17e6994a948fa253a30c98385f8577c16c8f6e5 Mon Sep 17 00:00:00 2001 From: mouseless <97399882+mouseless-eth@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:12:42 +0000 Subject: [PATCH] remove error message padding --- src/rpc/rpcHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/rpcHandler.ts b/src/rpc/rpcHandler.ts index b87a2c28..688cf774 100644 --- a/src/rpc/rpcHandler.ts +++ b/src/rpc/rpcHandler.ts @@ -952,7 +952,7 @@ export class RpcHandler implements IRpcEndpoint { getAAError(errorReason) ) throw new RpcError( - `UserOperation reverted during simulation with reason: ${errorReason}`, + errorReason, ValidationErrors.InvalidFields ) }