Skip to content

Commit afea6b6

Browse files
committedDec 12, 2024··
fix(connect): pass through to connector.connect
1 parent 8b0726c commit afea6b6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎.changeset/honest-eggs-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wagmi/core": patch
3+
---
4+
5+
Passed through parameters to `connector.connect` in `connect` action.

‎packages/core/src/actions/connect.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export async function connect<
7878
config.setState((x) => ({ ...x, status: 'connecting' }))
7979
connector.emitter.emit('message', { type: 'connecting' })
8080

81-
const data = await connector.connect({ chainId: parameters.chainId })
81+
const { connector: _, ...rest } = parameters
82+
const data = await connector.connect(rest)
8283
const accounts = data.accounts as readonly [Address, ...Address[]]
8384

8485
connector.emitter.off('connect', config._internal.events.connect)

0 commit comments

Comments
 (0)
Please sign in to comment.