bolt11: fix any amount invoices

This commit is contained in:
William Casarin
2023-01-01 11:02:44 -08:00
parent b65d9a49ff
commit cf615b82b2
4 changed files with 61 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ struct InvoicesView: View {
struct InvoicesView_Previews: PreviewProvider {
static var previews: some View {
InvoicesView(invoices: [Invoice.init(description: "description", amount: 10000, string: "invstr", expiry: 100000, payment_hash: Data(), created_at: 1000000)])
InvoicesView(invoices: [Invoice.init(description: "description", amount: .specific(10000), string: "invstr", expiry: 100000, payment_hash: Data(), created_at: 1000000)])
.frame(width: 300)
}
}