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(widget): ignore selected eip6963 provider when in widget #5009

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

shoom3301
Copy link
Collaborator

@shoom3301 shoom3301 commented Oct 18, 2024

Summary

Fixes #5006

THe problem in the fact that we remember eip6963 provider in CoW Swap and give it more prio than widget provider.
For dapp mode in widget we should always use widget provider.

To Test

  1. Open CoW Swap, connect to some eip6963 wallet
  2. Open widget-configurator, use dapp mode and connect to a wallet
  3. Change network in the wallet that was connected to widget-configurator
  • AR: widget content didn't update network
  • ER: widget content updated network corresponding to the widget-configurator

If you instead of the 1st step disconnect a wallet in CoW Swap, then everything should work well

@shoom3301 shoom3301 added the RELEASE Included in the release that is being closed label Oct 18, 2024
@shoom3301 shoom3301 requested review from a team October 18, 2024 10:58
@shoom3301 shoom3301 self-assigned this Oct 18, 2024
Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Oct 18, 2024 11:07am
cowfi ✅ Ready (Inspect) Visit Preview Oct 18, 2024 11:07am
explorer-dev ✅ Ready (Inspect) Visit Preview Oct 18, 2024 11:07am
swap-dev ✅ Ready (Inspect) Visit Preview Oct 18, 2024 11:07am
widget-configurator ✅ Ready (Inspect) Visit Preview Oct 18, 2024 11:07am

Copy link
Collaborator

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

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

Working very smoothly

Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!

@shoom3301 shoom3301 merged commit 3f8446b into main Oct 18, 2024
11 of 12 checks passed
@shoom3301 shoom3301 deleted the hotfix/widget-network-sync branch October 18, 2024 12:03
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants