Skip to content

Fix: Incorrect pop-up while sending btc again#920

Merged
Lainaaa merged 1 commit into
developfrom
issue_919
Sep 29, 2025
Merged

Fix: Incorrect pop-up while sending btc again#920
Lainaaa merged 1 commit into
developfrom
issue_919

Conversation

@Lainaaa

@Lainaaa Lainaaa commented Sep 26, 2025

Copy link
Copy Markdown
Member

Description

Fix #919

How to test

Described in the issue

Notes for reviewers

Before we were creating transaction and only after this checking if we have a pending one. I changed the order to check first.
It some magic inside createTransaction on BTC and somehow it calculate weird (i don't correct or not) when we have pending transaction.

@Lainaaa Lainaaa self-assigned this Sep 26, 2025
@al-onyxprotocol al-onyxprotocol added bug Something isn't working Swift iOS-specific code and features in Swift UX/UI User interface and experience improvements labels Sep 27, 2025
@Lainaaa Lainaaa merged commit fdb0179 into develop Sep 29, 2025
1 check passed
@Lainaaa Lainaaa deleted the issue_919 branch September 29, 2025 17:14
@adamantmm adamantmm requested a review from Copilot February 13, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #919 where sending BTC while a previous transaction is pending incorrectly displays an "Insufficient funds" error instead of the expected "You have an unfinished transaction. Send later" warning. The fix reorders the validation logic to check for pending transactions before attempting to create a new transaction, preventing the BTC transaction creation logic from calculating incorrect available funds when a pending transaction exists.

Changes:

  • Moved the pending transaction check (doesNotContainSendingTx()) to execute before createTransaction() in the Bitcoin wallet transfer flow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Swift iOS-specific code and features in Swift UX/UI User interface and experience improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Incorrect pop-up while sending btc repeatedly

3 participants