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(unlock-app): use eip1193 when recreating wallet provider for wallet connect #14068

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

clemsos
Copy link
Member

@clemsos clemsos commented Jun 18, 2024

Description

This fixes a bug introduced with the upgrade to ethers 6 that made the wallet connect flow fails

Issues

Fixes #
Refs #

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

Release Note Draft Snippet

@clemsos clemsos requested a review from julien51 June 18, 2024 15:26
@cla-bot cla-bot bot added the cla-signed label Jun 18, 2024
@@ -79,24 +80,28 @@ export const useProvider = (config: any) => {

const getNetworkProvider = async (networkId?: number) => {
const currentNetworkId = Number(network)
let pr = provider
let existingBrowserProvider = provider
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for renaming!

@julien51 julien51 merged commit b1c9a63 into master Jun 18, 2024
12 checks passed
julien51 pushed a commit that referenced this pull request Jun 18, 2024
…et connect (#14068)

* use eip1193 to init provider on wallet connect

* clarify provider flow
julien51 added a commit that referenced this pull request Jun 18, 2024
* Manual deploy as of commit:2c21135eb2fe5f56bad82c282c07c36ee49b9877

* fix(unlock-app): fixing decent serialization

* fix(unlock-app): fix paywall modal when closed (#14065)

fix for paywall modal when closed

* fix(unlock-app): fix network switch (#14064)

* fix network switch

* remove unwanted console log

* cross-chain parse gas values properly

* recreate provider proplery

* cross chain: delete unwanted gas values

* fix(unlock-app): use eip1193 when recreating wallet provider for wallet connect (#14068)

* use eip1193 to init provider on wallet connect

* clarify provider flow

---------

Co-authored-by: Clément Renaud <clement@unlock-protocol.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants