Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: send on-chain #1900

Merged
merged 3 commits into from
Jan 25, 2024
Merged

Fix: send on-chain #1900

merged 3 commits into from
Jan 25, 2024

Conversation

bonomat
Copy link
Contributor

@bonomat bonomat commented Jan 25, 2024

Tested on phone and simulator. Let's see if this was really the issue :/

resolves #1892

Note: I made a small UI change: Allow users to copy the address only (without bitcoin:) in front of it.

image

Now one can copy the invoice (which includes bitcoin:...?amount) and the address only.

Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
It looks like the issue was a problem of poping the modal async. Since we don't do a lightning payment at the moment we can fall back to good ol sync payments.

Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
walletService.sendPayment(widget.destination, widget.amount).catchError((error) {
try {
walletService.sendOnChainPayment(widget.destination, widget.amount);
setState(() => sent = true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: To be consistent with the previous implementation this should go after the try catch.

However, this will anyways not be needed when we drop uspd and lightning payments.

@bonomat bonomat added this pull request to the merge queue Jan 25, 2024
Merged via the queue into main with commit 405c8a2 Jan 25, 2024
19 checks passed
@bonomat bonomat deleted the fix/sending-on-chain branch January 25, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't send money on-chain
2 participants