diff --git a/cmd/horcrux/cmd/address.go b/cmd/horcrux/cmd/address.go index 228f8163..3114023f 100644 --- a/cmd/horcrux/cmd/address.go +++ b/cmd/horcrux/cmd/address.go @@ -58,7 +58,8 @@ func addressCmd() *cobra.Command { } keyFile, err := config.KeyFileExistsSingleSigner(chainID) if err != nil { - return fmt.Errorf("error reading priv-validator key: %w, check that key is present for chain Index: %s", err, chainID) + return fmt.Errorf( + "error reading priv-validator key: %w, check that key is present for chain Index: %s", err, chainID) } filePV := cometprivval.LoadFilePVEmptyState(keyFile, "") diff --git a/cmd/horcrux/cmd/config_test.go b/cmd/horcrux/cmd/config_test.go index 755c34d2..87fc7bbc 100644 --- a/cmd/horcrux/cmd/config_test.go +++ b/cmd/horcrux/cmd/config_test.go @@ -94,7 +94,8 @@ grpcAddr: "" "--raft-timeout", "500ms", "--grpc-timeout", "500ms", }, - expectErr: `failed to parse cosigner (shard Index: 1) p2p address: parse "://10.168.1.1:2222": missing protocol scheme`, + expectErr: `failed to parse cosigner (shard Index: 1) p2p address: + parse "://10.168.1.1:2222": missing protocol scheme`, }, { name: "invalid threshold", diff --git a/cmd/horcrux/cmd/state.go b/cmd/horcrux/cmd/state.go index 5f253da3..99da0861 100644 --- a/cmd/horcrux/cmd/state.go +++ b/cmd/horcrux/cmd/state.go @@ -4,13 +4,14 @@ import ( "bufio" "encoding/base64" "fmt" - "github.com/strangelove-ventures/horcrux/pkg/types" "io" "os" "strconv" "strings" "time" + "github.com/strangelove-ventures/horcrux/pkg/types" + "github.com/spf13/cobra" "github.com/strangelove-ventures/horcrux/signer" diff --git a/cmd/horcrux/cmd/state_test.go b/cmd/horcrux/cmd/state_test.go index 18942ceb..fdb8c769 100644 --- a/cmd/horcrux/cmd/state_test.go +++ b/cmd/horcrux/cmd/state_test.go @@ -1,13 +1,14 @@ package cmd import ( - "github.com/strangelove-ventures/horcrux/pkg/types" "io" "path/filepath" "strconv" "testing" "time" + "github.com/strangelove-ventures/horcrux/pkg/types" + "github.com/stretchr/testify/require" ) diff --git a/signer/threshold_signer_bls.go b/signer/threshold_signer_bls.go index ff8a2065..4863b911 100644 --- a/signer/threshold_signer_bls.go +++ b/signer/threshold_signer_bls.go @@ -4,6 +4,7 @@ import ( "bytes" "errors" "fmt" + "github.com/strangelove-ventures/horcrux/pkg/types" "gitlab.com/unit410/edwards25519" diff --git a/signer/threshold_signer_soft.go b/signer/threshold_signer_soft.go index ade74465..ad6927f3 100644 --- a/signer/threshold_signer_soft.go +++ b/signer/threshold_signer_soft.go @@ -5,6 +5,7 @@ import ( "crypto/rand" "errors" "fmt" + "github.com/strangelove-ventures/horcrux/pkg/types" "gitlab.com/unit410/edwards25519"