MiguelMedeiros / lnbits-js

NPM Package for LNBits.com API.
23 stars 14 forks source link

NPM lnbits create TPOS currency error #1

Closed gitnonymous closed 3 years ago

gitnonymous commented 3 years ago

There seems to be an issue with creating a TPOS from the NPM lnbits createTPoS(). The issue i think is the 3 letter currency is "lowercase". OpenNode currency is all uppercase. Creating a TPOS from the admin addon uses an uppercase currency code and works. The browser debug is faulting at :

var self = this axios.get('https://api.opennode.co/v1/rates').then(function (response) { self.exchangeRate = response.data.data['BTC' + self.currency][self.currency] })

Thanks in advance.

gitnonymous commented 3 years ago

I think I solved it my end. It's working through npm. Cheers.