Skip to content

Commit

Permalink
fix: bump listener limit on WalletConnect connector
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Jan 16, 2024
1 parent 90ef39b commit 1cfb6e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/short-cooks-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wagmi/connectors": patch
"@wagmi/core": patch
"wagmi": patch
---

Bumped listener limit on WalletConnect connector.
1 change: 1 addition & 0 deletions packages/connectors/src/walletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export function walletConnect(parameters: WalletConnectParameters) {
if (!provider_) {
if (!providerPromise) providerPromise = initProvider()
provider_ = await providerPromise
provider_?.events.setMaxListeners(Infinity)
}
if (chainId) await this.switchChain?.({ chainId })
return provider_!
Expand Down

1 comment on commit 1cfb6e5

@vercel
Copy link

@vercel vercel bot commented on 1cfb6e5 Jan 16, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.