Skip to content

Commit 9bbee8c

Browse files
committed
fix(go): deregister attributes errors
Signed-off-by: Artur Troian <[email protected]>
1 parent def51e6 commit 9bbee8c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

go/node/types/v1beta3/attribute.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package v1beta3
22

33
import (
4+
"errors"
45
"path/filepath"
56
"reflect"
67
"regexp"
78
"sort"
89
"strconv"
910
"strings"
10-
11-
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
12-
"gopkg.in/yaml.v3"
1311
)
1412

1513
const (
@@ -24,8 +22,8 @@ const (
2422
)
2523

2624
var (
27-
ErrAttributesDuplicateKeys = sdkerrors.Register(moduleName, errAttributesDuplicateKeys, "attributes cannot have duplicate keys")
28-
ErrInvalidAttributeKey = sdkerrors.Register(moduleName, errInvalidAttributeKey, "attribute key does not match regexp")
25+
ErrAttributesDuplicateKeys = errors.New("attributes cannot have duplicate keys")
26+
ErrInvalidAttributeKey = errors.New("attribute key does not match regexp")
2927
)
3028

3129
var (

0 commit comments

Comments
 (0)