fix: case sensitivity

This commit is contained in:
Rafael Taranto 2024-02-29 18:13:42 +00:00
parent b371bccf6c
commit 508adb573f
3 changed files with 48 additions and 85 deletions

View file

@ -93,11 +93,11 @@ function getGaloyWallet (token, endpoint, walletId) {
}
function isLnInvoice (address) {
return address.startsWith('lnbc')
return address.toLowerCase().startsWith('lnbc')
}
function isLnurl (address) {
return address.startsWith('lnurl')
return address.toLowerCase().startsWith('lnurl')
}
function sendFundsOnChain (walletId, address, cryptoAtoms, token, endpoint) {