Skip to content

Commit 559927b

Browse files
authored
Merge pull request #5513 from BitGo/BTC-0-update-invoice-codec
fix(sdk-core): use DateFromISOString in invoice expiry
2 parents aceade3 + 080eb32 commit 559927b

File tree

1 file changed

+1
-1
lines changed
  • modules/sdk-core/src/bitgo/lightning

1 file changed

+1
-1
lines changed

modules/sdk-core/src/bitgo/lightning/codecs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const Invoice = t.intersection(
239239
walletId: t.string,
240240
status: InvoiceStatus,
241241
/** A date in ISO format representing when this invoice expires. */
242-
expiresAt: t.string,
242+
expiresAt: DateFromISOString,
243243
}),
244244
t.partial({
245245
memo: t.string,

0 commit comments

Comments
 (0)