diff --git a/lib/plugins/wallet/galoy/galoy.js b/lib/plugins/wallet/galoy/galoy.js index cc47da35..dd75f4b2 100644 --- a/lib/plugins/wallet/galoy/galoy.js +++ b/lib/plugins/wallet/galoy/galoy.js @@ -240,16 +240,7 @@ function newAddress (account, info, tx, settings, operatorId) { const { cryptoAtoms, cryptoCode } = tx return checkCryptoCode(cryptoCode) .then(() => getGaloyWallet(account.apiSecret, account.endpoint, account.walletId)) - .then(wallet => { - const promises = [ - newOnChainAddress(wallet.id, account.apiSecret, account.endpoint), - newInvoice(wallet.id, cryptoAtoms, account.apiSecret, account.endpoint) - ] - return Promise.all(promises) - }) - .then(([onChainAddress, invoice]) => { - return `bitcoin:${onChainAddress}?amount=${cryptoAtoms}&lightning=${invoice}` - }) + .then(wallet => newInvoice(wallet.id, cryptoAtoms, account.apiSecret, account.endpoint)) } function getInvoiceStatus (token, endpoint, address) {