Remove warning if wallet does not support msats
This commit is contained in:
parent
020b914d0d
commit
181cb87c18
@ -66,8 +66,6 @@ export async function createInvoice (userId, { msats, description, descriptionHa
|
|||||||
if (BigInt(msats) - BigInt(bolt11.mtokens) >= 1000n) {
|
if (BigInt(msats) - BigInt(bolt11.mtokens) >= 1000n) {
|
||||||
throw new Error('invoice invalid: amount too small')
|
throw new Error('invoice invalid: amount too small')
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.warn('wallet does not support msats')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return { invoice, wallet, logger }
|
return { invoice, wallet, logger }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user