Skip to content

Commit

Permalink
chore: remove duplicate extend in getWalletClient (#4286)
Browse files Browse the repository at this point in the history
* chore: remove duplicate extend

* chore: changeset

---------

Co-authored-by: Tom Meagher <[email protected]>
  • Loading branch information
holic and tmm authored Sep 20, 2024
1 parent 472993b commit edcbf5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-singers-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/core": patch
---

Removed duplicate code.
2 changes: 0 additions & 2 deletions packages/core/src/actions/getWalletClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export async function getWalletClient<
parameters: GetWalletClientParameters<config, chainId> = {},
): Promise<GetWalletClientReturnType<config, chainId>> {
const client = await getConnectorClient(config, parameters)
client.extend(walletActions)

// @ts-ignore
return client.extend(walletActions) as unknown as GetWalletClientReturnType<
config,
Expand Down

0 comments on commit edcbf5d

Please sign in to comment.