Skip to content

Commit

Permalink
Fix formatting issues in address.go, config_test.go, state.go, state_…
Browse files Browse the repository at this point in the history
…test.go, threshold_signer_bls.go, and threshold_signer_soft.go
  • Loading branch information
nitronit committed Dec 9, 2023
1 parent b5033ad commit 9a73088
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cmd/horcrux/cmd/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")
Expand Down
3 changes: 2 additions & 1 deletion cmd/horcrux/cmd/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion cmd/horcrux/cmd/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 2 additions & 1 deletion cmd/horcrux/cmd/state_test.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
1 change: 1 addition & 0 deletions signer/threshold_signer_bls.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"fmt"

"github.com/strangelove-ventures/horcrux/pkg/types"

"gitlab.com/unit410/edwards25519"
Expand Down
1 change: 1 addition & 0 deletions signer/threshold_signer_soft.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"crypto/rand"
"errors"
"fmt"

"github.com/strangelove-ventures/horcrux/pkg/types"

"gitlab.com/unit410/edwards25519"
Expand Down

0 comments on commit 9a73088

Please sign in to comment.