Skip to content

Commit 7cf6b22

Browse files
authored
Add walletAppUrl option for universal wallet (#542)
* Add walletAppUrl option for universal wallet * Add one more check
1 parent 8d7f380 commit 7cf6b22

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/connect/src/config/defaultConnectors.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ export interface DefaultWaasConnectorOptions extends CommonConnectorOptions {
9090
}
9191

9292
export interface DefaultUniversalConnectorOptions extends CommonConnectorOptions {
93-
sequence?: boolean
93+
sequence?:
94+
| boolean
95+
| {
96+
walletAppURL?: string
97+
}
9498
email?: boolean
9599
google?: boolean
96100
facebook?: boolean
@@ -319,6 +323,10 @@ export const getDefaultUniversalConnectors = (options: DefaultUniversalConnector
319323
wallets.push(
320324
sequence({
321325
defaultNetwork: defaultChainId,
326+
walletAppURL:
327+
options.sequence && typeof options.sequence === 'object' && 'walletAppURL' in options.sequence
328+
? options.sequence.walletAppURL
329+
: undefined,
322330
connect: {
323331
app: appName
324332
}

0 commit comments

Comments
 (0)