cashubtc / eNuts

A Cashu wallet for Android and iOS 🥜🐿️
https://enuts.cash
GNU General Public License v3.0
187 stars 25 forks source link

Pay lightning invoice - zero amount #368

Open michal-podzimek opened 6 days ago

michal-podzimek commented 6 days ago

Describe the bug If I try to pay LN invoice, amount is zero.

To Reproduce Steps to reproduce the behavior:

  1. Send
  2. Pay Lightning invoice
  3. Choose a mint
  4. LN Invoice or LNURL
  5. Past invoice
  6. Continue
  7. Amount is 0 Sat

Expected behavior Amount in invoice is 15 sats.

Smartphone (please complete the following information):

Additional context Testing invoice: lnbc150n1pnwgwmkpp5vxn5sstgvk67llmlw7wrdvzt9m9wlj2h6mwyryjdszs85nc6wpgqdqqcqzpgxqrrsssp56nggwlxc3ep04ulyznfd8mnan9k398539v4uvm9d85rqjst7nseq9qxpqysgqkvd8mjxu6xfepkfepz547vpf2zjk7f88cv32wvnfssmz0q7zq4ey9t6rdk2zm3nemes8re6qhv7v33ahljuzzk85dljy4nvluyx93xcpyfcsa9 screenshot

KKA11010 commented 6 days ago

Thanks for opening this issue! Good catch @michal-podzimek 👍 because I believe this only happens if you paste your clipboard by pressing the paste button provided by the devices native keyboard.

Will look into it, should be a quick fix hopefully.

michal-podzimek commented 6 days ago

You are right when i use the button in the app it works.