We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wevm
Learn more about funding links in repositories.
Report abuse
connector.connect
1 parent 8b0726c commit afea6b6Copy full SHA for afea6b6
.changeset/honest-eggs-buy.md
@@ -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
@@ -78,7 +78,8 @@ export async function connect<
78
config.setState((x) => ({ ...x, status: 'connecting' }))
79
connector.emitter.emit('message', { type: 'connecting' })
80
81
- const data = await connector.connect({ chainId: parameters.chainId })
+ const { connector: _, ...rest } = parameters
82
+ const data = await connector.connect(rest)
83
const accounts = data.accounts as readonly [Address, ...Address[]]
84
85
connector.emitter.off('connect', config._internal.events.connect)
0 commit comments