fix: allow zero invoices on server

This commit is contained in:
Rafael Taranto 2024-01-31 08:34:23 +00:00
parent f47b04c404
commit bd8b0ca182
3 changed files with 486 additions and 79 deletions

View file

@ -263,7 +263,7 @@ function getStatus (account, tx, requested, settings, operatorId) {
const externalCryptoCode = coinUtils.getEquivalentCode(cryptoCode)
return checkCryptoCode(cryptoCode)
.then(() => {
const address = coinUtils.parseUrl(cryptoCode, account.environment, toAddress)
const address = coinUtils.parseUrl(cryptoCode, account.environment, toAddress, false)
// Consider all LN transactions successful
if (isLightning(address)) {
return { receivedCryptoAtoms: cryptoAtoms, status: 'confirmed' }