Skip to content

fix(ConnectWalletForm): connect with fetched wallet info only#1088

Merged
DarianM merged 7 commits into
mainfrom
wallet-address-info-for-connect
Jun 12, 2025
Merged

fix(ConnectWalletForm): connect with fetched wallet info only#1088
DarianM merged 7 commits into
mainfrom
wallet-address-info-for-connect

Conversation

@sidvishnoi

Copy link
Copy Markdown
Member

Context

Closes #1083

Changes proposed in this pull request

Reuse fetched wallet info to connect the wallet, instead of fetching again in background (which might resolve to different wallet info).
Also gives a little performance benefit.

@sidvishnoi sidvishnoi requested a review from DarianM June 11, 2025 12:47
@github-actions github-actions Bot added area: background Improvements or additions to extension background script area: popup Improvements or additions to extension popup area: pages Changes to any of extension's pages area: shared Changes to shared libraries and utilities labels Jun 11, 2025
Comment on lines +251 to +252
walletAddressInfo ??
(await getWalletInfo(toWalletAddressUrl(walletAddress))),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

walletAddressInfo should not be null here, but if it is, then we fetch it.
#957 should help avoid problems like this.

@github-actions

github-actions Bot commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Extension builds preview

Name Link
Latest commit 3606ac2
Latest job logs Run #15607175065
Chrome (991.91KB)Download
Firefox (991.94KB)Download

Base automatically changed from storage--minRateOfPay-and-wa-url to main June 12, 2025 08:31
@DarianM DarianM merged commit e638eae into main Jun 12, 2025
9 checks passed
@DarianM DarianM deleted the wallet-address-info-for-connect branch June 12, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: background Improvements or additions to extension background script area: pages Changes to any of extension's pages area: popup Improvements or additions to extension popup area: shared Changes to shared libraries and utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect Wallet Connection Due to Dynamic Address Resolution

2 participants