cake_wallet
cake_wallet copied to clipboard
Amount scientific notation instead decimal notation
Describe the bug Scanning a qrcode containing the amount in the URL puts the BTC value in the correct field but in the wrong format (exponential notation, e.g. 2.218E-5) instead of the decimal notation (e.g. 0.00002218).
To Reproduce Steps to reproduce the behavior:
- Go to 'Send'
- Click on 'Scan QR-Code Icon'
- Scan the QR-Code
- See error
- Additionally after trying to send it anyway an error sows up: 'Amount can only contain numbers'
Expected behavior Show the value in decimal notation
Screenshots
QR-Code to Scan
Error message and wrong exponential notation in BTC amount field
Platform:
- OS: Android 13
- Device: Galaxy S20+
- Cake Wallet Version: 4.26.0
Additional context
It occurs not only on Silent Payment addresses, also normal Bitcoin addresses are affected
are you creating those qr codes in cake?
these qrcodes are created in PrestaShop software with a Bitcoin payment module https://www.onlineshop-module.de/zahlungsmodul-bitcoin-prestashop.html implemented the BIP0020 of the amount param, see https://en.bitcoin.it/wiki/BIP_0020#Simpler_syntax The silent payments here are still in a development process. Do you think, is there anything wrong with the QRcode?
I have also observed this issue in the past...