diff options
Diffstat (limited to 'lib/invoices.ts')
| -rw-r--r-- | lib/invoices.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts index c18a120b..45c97fe2 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -53,8 +53,8 @@ export let generate = async ({ invoice, user, sender = undefined }) => { let hash, text; if (account) { - bc = rpc({ ...config.bitcoin, wallet: account }); - hash = await bc.getNewAddress(); + let node = rpc({ ...config.bitcoin, wallet: account }); + hash = await node.getNewAddress(); text = bip21(hash, invoice); } else if (type === types.lightning) { let r; |
