Skip to content

Commit b0499bb

Browse files
authored
Merge pull request #198 from Roasbeef/hodl-invoice-amt-fix
invoiecs: fix value conversion bug in AddHodlInvoice
2 parents 3104fa5 + b1b04ea commit b0499bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invoices_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (s *invoicesClient) AddHoldInvoice(ctx context.Context,
227227
rpcIn := &invoicesrpc.AddHoldInvoiceRequest{
228228
Memo: in.Memo,
229229
Hash: in.Hash[:],
230-
Value: int64(in.Value.ToSatoshis()),
230+
ValueMsat: int64(in.Value),
231231
Expiry: in.Expiry,
232232
CltvExpiry: in.CltvExpiry,
233233
Private: true,

0 commit comments

Comments
 (0)