Skip to content

Commit

Permalink
Fixed linter issue with nolint comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Feb 4, 2023
1 parent 2244c3d commit b44b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion address.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func GetAddressFromPubKey(publicKey *bec.PublicKey, compressed bool) (*bscript.A
// https://github.com/libsv/go-bt/blob/master/bscript/address.go#L98
hash := crypto.Hash160(publicKey.SerialiseUncompressed())
bb := make([]byte, 1)
// nolint: makezero // we need to set up the array with 1
//nolint: makezero // we need to set up the array with 1
bb = append(bb, hash...)
return &bscript.Address{
AddressString: bscript.Base58EncodeMissingChecksum(bb),
Expand Down

0 comments on commit b44b23c

Please sign in to comment.