Don't pass logger to sendPayment

This commit is contained in:
ekzyis 2024-06-20 20:20:32 +02:00
parent 0de82db78a
commit 71c753810c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export function useWallet (name) {
const hash = bolt11Tags(bolt11).payment_hash const hash = bolt11Tags(bolt11).payment_hash
logger.info('sending payment:', `payment_hash=${hash}`) logger.info('sending payment:', `payment_hash=${hash}`)
try { try {
const { preimage } = await wallet.sendPayment({ bolt11, config, logger }) const { preimage } = await wallet.sendPayment({ bolt11, config })
logger.ok('payment successful:', `payment_hash=${hash}`, `preimage=${preimage}`) logger.ok('payment successful:', `payment_hash=${hash}`, `preimage=${preimage}`)
} catch (err) { } catch (err) {
const message = err.message || err.toString?.() const message = err.message || err.toString?.()