Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkrolevets committed Oct 4, 2024
1 parent 526190f commit 3ac3f1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/operator/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (
"github.com/bloxapp/ssv/utils/rsaencryption"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
"go.uber.org/zap"

spec "github.com/ssvlabs/dkg-spec"
spec_crypto "github.com/ssvlabs/dkg-spec/crypto"
"github.com/ssvlabs/dkg-spec/testing/stubs"
"github.com/ssvlabs/ssv-dkg/pkgs/dkg"
"github.com/ssvlabs/ssv-dkg/pkgs/utils"
"github.com/ssvlabs/ssv-dkg/pkgs/wire"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)

func singleOperatorKeys(t *testing.T) *rsa.PrivateKey {
Expand Down Expand Up @@ -159,7 +160,8 @@ func TestInitInstance(t *testing.T) {
require.NoError(t, err)
for i := 0; i < MaxInstances; i++ {
reqIDx := [24]byte{}
rand.Read(reqIDx[:]) // Just a sample value
_, err := rand.Read(reqIDx[:]) // Just a sample value
require.NoError(t, err)
respx, errx := func(reqID [24]byte, initMsg *wire.Transport, initiatorPub, initiatorSignature []byte) ([]byte, error) {
if err := swtch.State.validateInstances(reqID); err != nil {
return nil, err
Expand Down

0 comments on commit 3ac3f1d

Please sign in to comment.