From d8e1c9455b13a2f0b4384a8144e5daeee6038e9f Mon Sep 17 00:00:00 2001 From: unknown unknown Date: Tue, 21 Nov 2023 12:35:54 +0100 Subject: [PATCH] address review --- x/accounts/keeper_account_abstraction.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/x/accounts/keeper_account_abstraction.go b/x/accounts/keeper_account_abstraction.go index a6cf50c19de6..0861136699a9 100644 --- a/x/accounts/keeper_account_abstraction.go +++ b/x/accounts/keeper_account_abstraction.go @@ -2,6 +2,7 @@ package accounts import ( "context" + "errors" "fmt" "google.golang.org/protobuf/types/known/anypb" @@ -13,11 +14,11 @@ import ( var ( // ErrAuthentication is returned when the authentication fails. - ErrAuthentication = fmt.Errorf("authentication failed") + ErrAuthentication = errors.New("authentication failed") // ErrBundlerPayment is returned when the bundler payment fails. - ErrBundlerPayment = fmt.Errorf("bundler payment failed") + ErrBundlerPayment = errors.New("bundler payment failed") // ErrExecution is returned when the execution fails. - ErrExecution = fmt.Errorf("execution failed") + ErrExecution = errors.New("execution failed") ) // ExecuteUserOperation handles the execution of an abstracted account UserOperation.