Skip to content

Commit

Permalink
Fix lint issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson authored and hkalodner committed Aug 2, 2022
1 parent 5d5ad90 commit 3df5101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion das/extra_signature_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestEvenSimplerSignatureCheck(t *testing.T) {

pubkey, err := crypto.SigToPub(dataHash, sig)
Require(t, err)
if bytes.Compare(crypto.FromECDSAPub(pubkey), crypto.FromECDSAPub(&privateKey.PublicKey)) != 0 {
if !bytes.Equal(crypto.FromECDSAPub(pubkey), crypto.FromECDSAPub(&privateKey.PublicKey)) {
Fail(t, "Derived pubkey doesn't match pubkey")
}

Expand Down

0 comments on commit 3df5101

Please sign in to comment.