refactor: fix lint issues + gofumpt (#15062)
This commit is contained in:
@@ -6,7 +6,9 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
"cosmossdk.io/math"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -154,7 +156,7 @@ func NewPubKeyFromHex(pk string) (res cryptotypes.PubKey) {
|
||||
panic(err)
|
||||
}
|
||||
if len(pkBytes) != ed25519.PubKeySize {
|
||||
panic(errors.Wrap(errors.ErrInvalidPubKey, "invalid pubkey size"))
|
||||
panic(errorsmod.Wrap(errors.ErrInvalidPubKey, "invalid pubkey size"))
|
||||
}
|
||||
return &ed25519.PubKey{Key: pkBytes}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
package testdata
|
||||
|
||||
import "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
import "cosmossdk.io/errors"
|
||||
|
||||
var ErrTest = errors.Register("table_testdata", 2, "test")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user