Skip to content

Commit 87e7dd9

Browse files
committed
test: fix vet error in tests
1 parent 22164ea commit 87e7dd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ func TestBolt4Packet(t *testing.T) {
138138
for i, pubKeyHex := range bolt4PubKeys {
139139
pubKeyBytes, err := hex.DecodeString(pubKeyHex)
140140
if err != nil {
141-
t.Fatalf("unable to decode BOLT 4 hex pubkey #%d: %v", err)
141+
t.Fatalf("unable to decode BOLT 4 hex pubkey #%d: %v",
142+
i, err)
142143
}
143144

144145
route[i], err = btcec.ParsePubKey(pubKeyBytes, btcec.S256())

0 commit comments

Comments
 (0)