Skip to content

Conversation

@memoyil
Copy link
Collaborator

@memoyil memoyil commented Oct 6, 2025

Wallet balances not updated when

Main Condition is
(if token select modal opened initial fetch is completed and token not yet exist in user's wallet balance)

Then either;
If user collects fee from farm/lp and going back to swap, user can't see the collected token balance (this happens on various transaction types)

User dismiss the swap commit modal after sending trx but before the receipt (which resets the trade therefore useeffect wont work)

User making wrap (which uses another component (WrapCommitButtonReplace) than SwapCommitButton which has the refresh logic)

User making bridge swap output chain balances not updated after successful submit


PR-Codex overview

This PR primarily adds support for handling outputChainId in various transaction-related components, enhancing cross-chain functionality and updating state management accordingly.

Detailed summary

  • Added outputChainId to transaction-related interfaces and reducers.
  • Updated transaction actions to include outputChainId.
  • Enhanced tests to validate outputChainId handling.
  • Implemented WalletBalanceUpdater to refresh balances based on transaction events.
  • Modified usePublicNodeWaitForTransaction to dispatch wallet transaction events.
  • Cleaned up SwapCommitButtonInner by removing unused balance refresh logic.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Oct 6, 2025

⚠️ No Changeset found

Latest commit: 49fd140

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Oct 8, 2025 7:03am
8 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
aptos-web Ignored Ignored Oct 8, 2025 7:03am
blog Ignored Ignored Oct 8, 2025 7:03am
bridge Ignored Ignored Oct 8, 2025 7:03am
games Ignored Ignored Oct 8, 2025 7:03am
gamification Ignored Ignored Oct 8, 2025 7:03am
solana Ignored Ignored Oct 8, 2025 7:03am
ton Ignored Ignored Oct 8, 2025 7:03am
uikit Ignored Ignored Oct 8, 2025 7:03am

@memoyil memoyil changed the title fix: Wallet balances not updated when dismiss the modal before receipt or wrap fix: Wallet balances not updated on some conditions Oct 6, 2025
@pull-request-size pull-request-size bot added size/L and removed size/M labels Oct 6, 2025
@memoyil memoyil force-pushed the feature/fix_wallet_balance_not_updated branch from 81a0f4e to 9963441 Compare October 7, 2025 01:02
@memoyil memoyil force-pushed the feature/fix_wallet_balance_not_updated branch from 833ee82 to 2debfa2 Compare October 7, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants