From 7b6f0eadd770925098de0d52673c050ed3844bb0 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Date: Wed, 1 Mar 2023 13:03:08 +0330 Subject: [PATCH] replace fmt with errors Co-authored-by: Marius van der Wijden --- accounts/abi/bind/template2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/bind/template2.go b/accounts/abi/bind/template2.go index 34ce763626..bbd6d0ad63 100644 --- a/accounts/abi/bind/template2.go +++ b/accounts/abi/bind/template2.go @@ -126,7 +126,7 @@ var ( func (_{{$contract.Type}} *{{$contract.Type}}) Unpack{{.Normalized.Name}}Event(log types.Log) (*{{$contract.Type}}{{.Normalized.Name}}, error) { event := "{{.Normalized.Name}}" if log.Topics[0] != _{{$contract.Type}}.abi.Events[event].ID { - return nil, fmt.Errorf("event signature mismatch") + return nil, errors.New("event signature mismatch") } out := new({{$contract.Type}}{{.Normalized.Name}}) if len(log.Data) > 0 {