Blockstream / green_ios

Blockstream Green Wallet for iOS
GNU General Public License v3.0
124 stars 33 forks source link

Broken flow when using BIP21 #61

Open Kexkey opened 3 months ago

Kexkey commented 3 months ago

Description

Since a few weeks (couldn't tell what version exactly), when scanning/pasting a BIP21 QR/string, the payment flow asks for the amount as well as the account even if the amount is in the BIP21 string and even if we were in the account when scanned. It doesn't detect the label either.

Version

Not sure, maybe since 2 months.

Steps to reproduce

Go in Bitcoin. Choose an account. Scan a BIP21 QR code. The wallet will then ask for the account from which to spend. Then it will ask for the amount. The BIP21 label won't be set as transaction note.

Expected behaviour

The account should be the one we're already in. The amount and label should be used as the payment amount and transaction note.

Actual behaviour

Only the address is taken into account.

Screenshots

None

Additional info

I suspected the BIP21 being the problem, so I tried one from another wallet and the error is still there.