Skip to content

Commit

Permalink
fix: address comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed May 10, 2024
1 parent 8fc039d commit 4fecbbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/dirty-baboons-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wagmi/core": patch
"wagmi": patch
---

Fixed address comparison in `getConnectorClient`.
7 changes: 6 additions & 1 deletion packages/core/src/actions/getConnectorClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ export async function getConnectorClient<
}

// if account was provided, check that it exists on the connector
if (parameters.account && !connection.accounts.includes(account.address))
if (
parameters.account &&
!connection.accounts.some(
(x) => x.toLowerCase() === account.address.toLowerCase(),
)
)
throw new ConnectorAccountNotFoundError({
address: account.address,
connector,
Expand Down

0 comments on commit 4fecbbb

Please sign in to comment.