From 9bbee8cf91d874e09d771ad6ff7aaba86347f827 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Wed, 17 Jul 2024 08:00:29 -0500 Subject: [PATCH] fix(go): deregister attributes errors Signed-off-by: Artur Troian --- go/node/types/v1beta3/attribute.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/go/node/types/v1beta3/attribute.go b/go/node/types/v1beta3/attribute.go index a2bb42b6..bde200aa 100644 --- a/go/node/types/v1beta3/attribute.go +++ b/go/node/types/v1beta3/attribute.go @@ -1,15 +1,13 @@ package v1beta3 import ( + "errors" "path/filepath" "reflect" "regexp" "sort" "strconv" "strings" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "gopkg.in/yaml.v3" ) const ( @@ -24,8 +22,8 @@ const ( ) var ( - ErrAttributesDuplicateKeys = sdkerrors.Register(moduleName, errAttributesDuplicateKeys, "attributes cannot have duplicate keys") - ErrInvalidAttributeKey = sdkerrors.Register(moduleName, errInvalidAttributeKey, "attribute key does not match regexp") + ErrAttributesDuplicateKeys = errors.New("attributes cannot have duplicate keys") + ErrInvalidAttributeKey = errors.New("attribute key does not match regexp") ) var (