Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Aug 15, 2024
1 parent a39900b commit 5b846c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/registrant/registrant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,16 @@ func TestNewRegistrantExistingDatabase(t *testing.T) {
{NodeID: 5, SigningKey: &deps.privKey1.PublicKey},
}, nil)

deps.db.InsertNodeInfo(
_, err := deps.db.InsertNodeInfo(
deps.ctx,
queries.InsertNodeInfoParams{
NodeID: 5,
PublicKey: crypto.FromECDSAPub(&deps.privKey1.PublicKey),
},
)
require.NoError(t, err)

_, err := registrant.NewRegistrant(deps.ctx, deps.db, deps.registry, deps.privKey1Str)
_, err = registrant.NewRegistrant(deps.ctx, deps.db, deps.registry, deps.privKey1Str)
require.NoError(t, err)
}

Expand Down

0 comments on commit 5b846c5

Please sign in to comment.