Skip to content

Commit

Permalink
expiry null
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick committed Oct 1, 2024
1 parent 35eab64 commit e364094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/mint/lightning/lnbits.zig
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ pub const LnBits = struct {
const amnt = try core.lightning.toUnit(amount, unit, .sat);

const expiry = unix_expiry - @abs(time_now);
_ = expiry; // autofix

const create_invoice_response = try self.client.createInvoice(gpa, .{
.amount = amnt,
.unit = unit.toString(),
.memo = description,
.expiry = expiry,
// .expiry = expiry,
.expiry = null,
.webhook = self.webhook_url,
.internal = null,
.out = false,
Expand Down

0 comments on commit e364094

Please sign in to comment.