Repository: reown-com/appkit
Pull request #4171: fix: connectors not syncing properly when using multichain
Author: login: 0xmkh
Created: 2025-04-08T16:00:26Z | Merged: 2025-04-08T17:17:14Z

# Description

Fixed an issue where connectors didn’t sync properly when using multichain

## Type of change

- [ ] Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

# Associated Issues

For Linear issues: Closes APKT-2648

# Showcase (Optional)

**Before when using SIWX multichain 👇**

![Screenshot 2025-04-08 at 14 21 07](https://github.com/user-attachments/assets/11063376-a7bb-43d8-a247-171c36b4f50e)

# Checklist

- [x] Code in this PR is covered by automated tests (Unit tests, E2E tests)
- [x] My changes generate no new warnings
- [x] I have reviewed my own code
- [x] I have filled out all required sections
- [x] I have tested my changes on the preview link
- [ ] Approver of this PR confirms that the changes are tested on the preview link



Diff:
diff --git a/packages/appkit/src/client/appkit-base-client.ts b/packages/appkit/src/client/appkit-base-client.ts
index 5aac7ed5b2..1672e2fe9c 100644
--- a/packages/appkit/src/client/appkit-base-client.ts
+++ b/packages/appkit/src/client/appkit-base-client.ts
@@ -1430,7 +1430,7 @@ export abstract class AppKitBaseClient {
     ChainController.getAccountProp('address', chainNamespace)
 
   public setConnectors: (typeof ConnectorController)['setConnectors'] = connectors => {
-    const allConnectors = [...ConnectorController.getConnectors(), ...connectors]
+    const allConnectors = [...ConnectorController.state.allConnectors, ...connectors]
     ConnectorController.setConnectors(allConnectors)
   }
 
diff --git a/packages/appkit/tests/client/public-methods.test.ts b/packages/appkit/tests/client/public-methods.test.ts
index 73ad480d90..85f299410e 100644
--- a/packages/appkit/tests/client/public-methods.test.ts
+++ b/packages/appkit/tests/client/public-methods.test.ts
@@ -440,22 +440,62 @@ describe('Base Public methods', () => {
   })
 
   it('should set connectors', () => {
-    const getConnectors = vi.spyOn(ConnectorController, 'getConnectors')
-    const setConnectors = vi.spyOn(ConnectorController, 'setConnectors')
     const existingConnectors = [
       { id: 'phantom', name: 'Phantom', chain: 'eip155', type: 'INJECTED' }
     ] as Connector[]
-    // Mock getConnectors to return existing connectors
-    vi.mocked(getConnectors).mockReturnValue(existingConnectors)
     const newConnectors = [
       { id: 'metamask', name: 'MetaMask', chain: 'eip155', type: 'INJECTED' }
     ] as Connector[]
 
+    const combinedConnectors = [...existingConnectors, ...newConnectors]
+
+    const appKit = new AppKit(mockOptions)
+    appKit.setConnectors(combinedConnectors)
+
+    expect(ConnectorController.state.connectors).toEqual(combinedConnectors)
+    expect(ConnectorController.state.allConnectors).toEqual(combinedConnectors)
+  })
+
+  it('should set multichain connectors', () => {
+    // Reset connectors state
+    ConnectorController.state.allConnectors = []
+    ConnectorController.state.connectors = []
+
+    const ethConnector = {
+      id: 'mock',
+      name: 'Mock',
+      type: 'INJECTED',
+      chain: 'eip155'
+    } as unknown as Connector
+
+    const solConnector = {
+      id: 'mock',
+      name: 'Mock',
+      type: 'INJECTED',
+      chain: 'solana'
+    } as unknown as Connector
+
     const appKit = new AppKit(mockOptions)
-    appKit.setConnectors(newConnectors)
 
-    // Verify that setConnectors was called with combined array
-    expect(setConnectors).toHaveBeenCalledWith([...existingConnectors, ...newConnectors])
+    appKit.setConnectors([ethConnector])
+
+    expect(ConnectorController.state.allConnectors).toEqual([ethConnector])
+
+    appKit.setConnectors([solConnector])
+
+    expect(ConnectorController.state.allConnectors).toEqual([ethConnector, solConnector])
+    expect(ConnectorController.state.connectors.length).toEqual(1)
+
+    // Handle merged connectors
+    const hasMergedConnectorFromAllConnectors = ConnectorController.state.allConnectors.some(
+      c => c.connectors && c.connectors.length > 0
+    )
+    const hasMergedConnectorFromConnectors = ConnectorController.state.connectors.some(
+      c => c.connectors && c.connectors.length > 0
+    )
+
+    expect(hasMergedConnectorFromAllConnectors).toBe(false)
+    expect(hasMergedConnectorFromConnectors).toBe(true)
   })
 
   it('should add connector', () => {


Reviews:
user: login: 0xmkh
state: COMMENTED
author_association: COLLABORATOR
submitted_at: 2025-04-08T16:08:45Z
user: login: tomiir
state: COMMENTED
author_association: COLLABORATOR
submitted_at: 2025-04-08T16:10:17Z
user: login: 0xmkh
state: COMMENTED
author_association: COLLABORATOR
submitted_at: 2025-04-08T16:21:27Z
user: login: tomiir
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-04-08T17:03:39Z

Review comments:
diff_hunk: @@ -1430,7 +1430,7 @@ export abstract class AppKitBaseClient {
     ChainController.getAccountProp('address', chainNamespace)
 
   public setConnectors: (typeof ConnectorController)['setConnectors'] = connectors => {
-    const allConnectors = [...ConnectorController.getConnectors(), ...connectors]
+    const allConnectors = [...ConnectorController.state.allConnectors, ...connectors]
path: packages/appkit/src/client/appkit-base-client.ts
user: login: 0xmkh
body: The issue here was we used `ConnectorController.state.connectors` state and we should've used `ConnectorController.state.allConnectors`.

Otherwise we'd get this issue.

![Screenshot 2025-04-08 at 17 02 50](https://github.com/user-attachments/assets/418fb45b-060d-4730-b026-3c25d0440b83)
created_at: 2025-04-08T16:08:45Z
author_association: COLLABORATOR
diff_hunk: @@ -1430,7 +1430,7 @@ export abstract class AppKitBaseClient {
     ChainController.getAccountProp('address', chainNamespace)
 
   public setConnectors: (typeof ConnectorController)['setConnectors'] = connectors => {
-    const allConnectors = [...ConnectorController.getConnectors(), ...connectors]
+    const allConnectors = [...ConnectorController.state.allConnectors, ...connectors]
path: packages/appkit/src/client/appkit-base-client.ts
user: login: tomiir
body: why do we have both fields? can we unify somehow? 

created_at: 2025-04-08T16:10:17Z
author_association: COLLABORATOR
diff_hunk: @@ -1430,7 +1430,7 @@ export abstract class AppKitBaseClient {
     ChainController.getAccountProp('address', chainNamespace)
 
   public setConnectors: (typeof ConnectorController)['setConnectors'] = connectors => {
-    const allConnectors = [...ConnectorController.getConnectors(), ...connectors]
+    const allConnectors = [...ConnectorController.state.allConnectors, ...connectors]
path: packages/appkit/src/client/appkit-base-client.ts
user: login: 0xmkh
body: yeah not sure why, should we create a separate refactor PR while getting this PR fix in ?
created_at: 2025-04-08T16:21:27Z
author_association: COLLABORATOR

PR comments:
user: login: linear[bot]
created_at: 2025-04-08T16:00:29Z
body: <p><a href="https://linear.app/reown/issue/APKT-2648/social-login-failing">APKT-2648 Social login Failing</a></p>
author_association: NONE
user: login: vercel[bot]
created_at: 2025-04-08T16:00:31Z
body: [vc]: #ejJWeluMOHWk9uATstb3hnUhehb2o9/9hz3S4sEqvBU=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJhcHBraXQtbGFib3JhdG9yeSIsInJvb3REaXJlY3RvcnkiOm51bGwsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9yZW93bi1jb20vYXBwa2l0LWxhYm9yYXRvcnkvQUJEaGZZS2pyRVVmQUhhS2QyaG00VHFTRFVpeSIsInByZXZpZXdVcmwiOiJhcHBraXQtbGFib3JhdG9yeS1naXQtZml4LWNvbm5lY3Rvci1zeW5jaW5nLWlzc3VlLXJlb3duLWNvbS52ZXJjZWwuYXBwIiwibmV4dENvbW1pdFN0YXR1cyI6IkRFUExPWUVEIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6ImFwcGtpdC1sYWJvcmF0b3J5LWdpdC1maXgtY29ubmVjdG9yLXN5bmNpbmctaXNzdWUtcmVvd24tY29tLnZlcmNlbC5hcHAifX0seyJuYW1lIjoiYXBwa2l0LXdhZ21pLWNkbi1leGFtcGxlIiwicm9vdERpcmVjdG9yeSI6bnVsbCwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6IiJ9LCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vcmVvd24tY29tL2FwcGtpdC13YWdtaS1jZG4tZXhhbXBsZS84M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oiIn0sImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9yZW93bi1jb20vYXBwa2l0LW5hbnNlbi1kZW1vLzVUY0ozRG9uMWhzSHdCSFVjTkxuWW11UFA5WFAiLCJuZXh0Q29tbWl0U3RhdHVzIjoiSUdOT1JFRCJ9XX0=
**The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more)

| Name | Status | Preview | Comments | Updated (UTC) |
| :--- | :----- | :------ | :------- | :------ |
| **appkit-demo** | ✅ Ready ([Inspect](https://vercel.com/reown-com/appkit-demo/9bkT3dom4Gy5BDajjHpvjVJZ1YQ2)) | [Visit Preview](https://appkit-demo-git-fix-connector-syncing-issue-reown-com.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/appkit-demo-git-fix-connector-syncing-issue-reown-com.vercel.app?via=pr-comment-feedback-link) | Apr 8, 2025 4:28pm |
| **appkit-laboratory** | ✅ Ready ([Inspect](https://vercel.com/reown-com/appkit-laboratory/ABDhfYKjrEUfAHaKd2hm4TqSDUiy)) | [Visit Preview](https://appkit-laboratory-git-fix-connector-syncing-issue-reown-com.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/appkit-laboratory-git-fix-connector-syncing-issue-reown-com.vercel.app?via=pr-comment-feedback-link) | Apr 8, 2025 4:28pm |

<details><summary>12 Skipped Deployments</summary>

| Name | Status | Preview | Comments | Updated (UTC) |
| :--- | :----- | :------ | :------- | :------ |
| **appkit-basic-ep** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-basic-ep/6znQovEEDsC4YyMpFqfbVr8j58Cb)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-basic-ep-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-basic-ep-example/8GHjbUwh1krFmLNn36x51jBBNvrA)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-basic-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-basic-example/Hc7EYE14YC6fmKhkZm3frdQcU1vb)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-basic-sign-client-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-basic-sign-client-example/5urtKeR2LXGmT8MdpifcU3ES19vT)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-basic-up-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-basic-up-example/Cbo9YA6LArYwA64muZdaF6hKYaXT)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-ethers5-bera** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-ethers5-bera/6KMwoQXxAHecScEM1vSU4QzZ1Pcz)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-nansen-demo** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-nansen-demo/5TcJ3Don1hsHwBHUcNLnYmuPP9XP)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-vue-solana** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-vue-solana/J9vqupEENMykHUgKyYhT8gkdE2JE)) |  |  | Apr 8, 2025 4:28pm |
| **appkit-wagmi-cdn-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/appkit-wagmi-cdn-example/83jmYsKEwbiLdNfdH5ZCnejPNtpb)) |  |  | Apr 8, 2025 4:28pm |
| **ethereum-provider-wagmi-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/ethereum-provider-wagmi-example/CqN1FurMXzgJXoGqCQMb1272fqua)) | [Visit Preview](https://ethereum-provider-wagmi-example-git-fix-connec-bfbd3e-reown-com.vercel.app) |  | Apr 8, 2025 4:28pm |
| **next-wagmi-solana-bitcoin-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/next-wagmi-solana-bitcoin-example/4wvn84nt7isfq6rTJyeieQDrcXA5)) |  |  | Apr 8, 2025 4:28pm |
| **vue-wagmi-example** | ⬜️ Ignored ([Inspect](https://vercel.com/reown-com/vue-wagmi-example/DMMNU4MoTMNy66ry3ArWt62pLS2Y)) |  |  | Apr 8, 2025 4:28pm |
</details>















author_association: NONE
user: login: changeset-bot[bot]
created_at: 2025-04-08T16:00:32Z
body: ###  ⚠️  No Changeset found

Latest commit: 4dfe74dc231792918fb60c1719c3ebcfa11902b2

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.**

<details><summary>This PR includes no changesets</summary>

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

</details>

[Click here to learn what changesets are, and how to add one](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).

[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/reown-com/appkit/new/fix/connector-syncing-issue?filename=.changeset/stale-kids-nail.md&value=---%0A%22%40reown%2Fappkit%22%3A%20patch%0A---%0A%0Afix%3A%20connectors%20not%20syncing%20properly%20when%20using%20multichain%0A)


author_association: NONE
user: login: github-actions[bot]
created_at: 2025-04-08T16:04:03Z
body: 
<!--
  0 failure: 
  2 warning:  File packages/app..., File packages/app...
  
  
  DangerID: danger-id-Danger;
-->


<table>
  <thead>
    <tr>
      <th width="50"></th>
      <th width="100%" data-danger-table="true">Warnings</th>
    </tr>
  </thead>
  <tbody><tr>
      <td>:warning:</td>
      <td>File packages/appkit/src/client/appkit-base-client.ts contains a KEY or SECRET</td>
    </tr>
  
<tr>
      <td>:warning:</td>
      <td>File packages/appkit/tests/client/public-methods.test.ts contains a KEY or SECRET</td>
    </tr>
  </tbody>
</table>



<p align="right">
  Generated by :no_entry_sign: <a href="https://danger.systems/js">dangerJS</a> against 4dfe74dc231792918fb60c1719c3ebcfa11902b2
</p>

author_association: CONTRIBUTOR
user: login: github-actions[bot]
created_at: 2025-04-08T16:12:59Z
body: <h2>Coverage Report</h2>
<table> <thead> <tr> <th align="center">Status</th> <th align="left">Category</th> <th align="right">Percentage</th> <th align="right">Covered / Total</th> </tr> </thead> <tbody> <tr> <td align="center">🔵</td> <td align="left">Lines</td> <td align="right">74.57%</td> <td align="right">25021 / 33551</td> </tr> <tr> <td align="center">🔵</td> <td align="left">Statements</td> <td align="right">74.57%</td> <td align="right">25021 / 33551</td> </tr> <tr> <td align="center">🔵</td> <td align="left">Functions</td> <td align="right">66.09%</td> <td align="right">2117 / 3203</td> </tr> <tr> <td align="center">🔵</td> <td align="left">Branches</td> <td align="right">83.2%</td> <td align="right">4826 / 5800</td> </tr> </tbody> </table><details><summary>File Coverage</summary><table> <thead> <tr> <th align="left">File</th> <th align="right">Stmts</th> <th align="right">Branches</th> <th align="right">Functions</th> <th align="right">Lines</th> <th align="left">Uncovered Lines</th> </tr> </thead> <tbody> <tr> <td align="left" colspan="6"><b>Changed Files</b></td> </tr> <tr> <td align="left"><a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts">packages/appkit/src/client/appkit-base-client.ts</a></td> <td align="right">71.06%</td> <td align="right">88.14%</td> <td align="right">76.71%</td> <td align="right">71.06%</td> <td align="left"><a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L179-L180" class="text-red">179-180</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L182-L183" class="text-red">182-183</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L188-L189" class="text-red">188-189</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L259-L260" class="text-red">259-260</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L296-L302" class="text-red">296-302</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L331-L350" class="text-red">331-350</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L353-L396" class="text-red">353-396</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L399-L404" class="text-red">399-404</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L421-L425" class="text-red">421-425</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L438-L453" class="text-red">438-453</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L478-L484" class="text-red">478-484</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L487-L497" class="text-red">487-497</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L500-L512" class="text-red">500-512</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L515-L517" class="text-red">515-517</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L520-L522" class="text-red">520-522</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L525-L527" class="text-red">525-527</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L530-L532" class="text-red">530-532</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L535-L541" class="text-red">535-541</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L544-L547" class="text-red">544-547</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L563-L575" class="text-red">563-575</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L581-L614" class="text-red">581-614</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L617-L627" class="text-red">617-627</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L681-L682" class="text-red">681-682</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L688" class="text-red">688</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L699-L713" class="text-red">699-713</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L719-L726" class="text-red">719-726</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L739-L743" class="text-red">739-743</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L783-L784" class="text-red">783-784</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L825-L829" class="text-red">825-829</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L835-L836" class="text-red">835-836</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L848" class="text-red">848</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L871-L876" class="text-red">871-876</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L942" class="text-red">942</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L963-L964" class="text-red">963-964</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L974" class="text-red">974</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L976-L992" class="text-red">976-992</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L997" class="text-red">997</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1036-L1037" class="text-red">1036-1037</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1053-L1054" class="text-red">1053-1054</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1059-L1060" class="text-red">1059-1060</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1093-L1100" class="text-red">1093-1100</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1146-L1150" class="text-red">1146-1150</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1179-L1182" class="text-red">1179-1182</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1186" class="text-red">1186</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1202-L1212" class="text-red">1202-1212</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1234-L1245" class="text-red">1234-1245</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1274-L1275" class="text-red">1274-1275</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1281-L1307" class="text-red">1281-1307</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1463-L1464" class="text-red">1463-1464</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1484-L1485" class="text-red">1484-1485</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1488-L1489" class="text-red">1488-1489</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1504-L1507" class="text-red">1504-1507</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1510-L1511" class="text-red">1510-1511</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1531-L1532" class="text-red">1531-1532</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1535-L1536" class="text-red">1535-1536</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1556-L1557" class="text-red">1556-1557</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1570" class="text-red">1570</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1574" class="text-red">1574</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1579-L1598" class="text-red">1579-1598</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1601-L1610" class="text-red">1601-1610</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1625-L1626" class="text-red">1625-1626</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1669-L1672" class="text-red">1669-1672</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1675-L1676" class="text-red">1675-1676</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1764-L1765" class="text-red">1764-1765</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1768-L1771" class="text-red">1768-1771</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1774-L1775" class="text-red">1774-1775</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1778-L1779" class="text-red">1778-1779</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1782-L1783" class="text-red">1782-1783</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1786-L1787" class="text-red">1786-1787</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1790-L1794" class="text-red">1790-1794</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1803-L1812" class="text-red">1803-1812</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1821-L1832" class="text-red">1821-1832</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1241" class="text-red">1241</a>, <a href="https://github.com/reown-com/appkit/blob/4dfe74dc231792918fb60c1719c3ebcfa11902b2/packages/appkit/src/client/appkit-base-client.ts#L1581-L1602" class="text-red">1581-1602</a></td> </tr> </tbody> </table></details>
<em>Generated in workflow <a href=https://github.com/reown-com/appkit/actions/runs/14338598031>#10799</a> for commit <a href="https://github.com/reown-com/appkit/commit/4dfe74dc231792918fb60c1719c3ebcfa11902b2">4dfe74d</a> by the <a href="https://github.com/davelosert/vitest-coverage-report-action">Vitest Coverage Report Action</a></em>

<!-- vitest-coverage-report-marker-root -->
author_association: CONTRIBUTOR