We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a8e31 commit 22f1742Copy full SHA for 22f1742
src/app/lightning/invoice.ts
@@ -1,11 +1,11 @@
1
-import { LnInvoice, createInvoice as breezCreateInvoice } from "@breeztech/react-native-breez-sdk";
+import { LnInvoice, createInvoice as breezCreateInvoice, Offer } from "@breeztech/react-native-breez-sdk";
2
import { getInvoice } from "./bolt11";
3
4
export type Invoice = LnInvoice;
5
export { getInvoice };
6
7
// Wrap the SDK's createInvoice function
8
-export const createInvoice = async (amount: number, memo: string) => {
+export const createInvoice = async (amount: number, memo: string, offer: string): Promise<Invoice> => {
9
try {
10
const invoice = await breezCreateInvoice(amount, memo);
11
return invoice;
0 commit comments