Skip to content

show transaction details after broadcast#3308

Merged
ca333 merged 1 commit intodevfrom
post-broadcast-tx-details
Oct 31, 2025
Merged

show transaction details after broadcast#3308
ca333 merged 1 commit intodevfrom
post-broadcast-tx-details

Conversation

@smk762
Copy link
Copy Markdown
Collaborator

@smk762 smk762 commented Oct 30, 2025

Closes #3120

Shows details of a transaction after broadcast.

vokoscreenNG-2025-10-30_19-28-51.mp4

To test:

  • Withdraw UXTO coin, and confirm details appear after sending
  • Withdraw EVM coin, and confirm details appear after sending
  • Withdraw ZHTLC coin, and confirm details appear after sending
  • Withdraw Tendermint coin (with memo), and confirm details appear after sending
  • Test on mobile to confirm display reasonable
  • Test "withdraw max" to check values for sanity

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Oct 30, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch post-broadcast-tx-details

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit ab91098):

https://walletrc--pull-3308-merge-oz2nmy4w.web.app

(expires Thu, 06 Nov 2025 11:35:24 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f66a4ff03faa546f12f0ae5a841bd9eff2714dcc

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +724 to +739
final tx = Transaction(
id: result.txHash,
internalId: result.txHash,
assetId: state.asset.id,
balanceChanges: result.balanceChanges,
// Show as unconfirmed initially
timestamp: DateTime.fromMillisecondsSinceEpoch(0),
confirmations: 0,
blockHeight: 0,
from: state.selectedSourceAddress != null
? [state.selectedSourceAddress!.address]
: <String>[],
to: [result.toAddress],
txHash: result.txHash,
fee: result.fee,
memo: state.memo,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Populate transaction amount for success details

The temporary Transaction shown after a successful withdrawal is built without an amount value, even though TransactionDetails renders the headline and USD conversion from transaction.amount. Because the field is never populated, the success screen will always display a zero amount regardless of what was actually sent. Use the confirmed withdrawal amount (e.g. from state.amount or by summing result.balanceChanges) when constructing tx so the details view shows the correct value.

Useful? React with 👍 / 👎.

@ca333 ca333 merged commit 6764264 into dev Oct 31, 2025
7 of 13 checks passed
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.

3 participants