Closed sneurlax closed 2 months ago
Converted to draft pending more testing. Or we can merge and test w/ testers :)
Tested and this mostly works, but the address is considered invalid after pasting it:
So this needs more work. It's a valid address, I got it from the Receive screen and added ?asdf as in bitcoincash:qp07gms9yzj9ykj74ervscc8zd89gwe23cark3uk2r?asdf
I also need to make sure that mobile send screens--and really all opportunities to paste URIs--are covered by this PR's logic.
We should expand on the parse util to handle various types of payment uris (bitcoin based, monero based, etc). There are more than 3 valid keys/params in the standards so this needs some more work for sure. The parsing of the uri should be centralized and return a common object with the values required for the gui.
The PR currently only affects the main desktop send screen. Nothing on mobile and possibly other send screens on desktop will not work with this either at the moment.
Re:
Tested and this mostly works, but the address is considered invalid after pasting it ... So this needs more work. It's a valid address, I got it from the Receive screen and added ?asdf as in
bitcoincash:qp07gms9yzj9ykj74ervscc8zd89gwe23cark3uk2r?asdf
This issue has been resolved by b73628d939429119b2f296e9456902a4db370e3d
Closes https://github.com/cypherstack/stack_wallet/issues/567
Tasks:
TODO refer to BIP21 to see if any other params are required