diff --git a/packages/connectors/src/connectors/wagmiConnectors/sequenceConnector.ts b/packages/connectors/src/connectors/wagmiConnectors/sequenceConnector.ts index 0cc27d2b..74f2de25 100644 --- a/packages/connectors/src/connectors/wagmiConnectors/sequenceConnector.ts +++ b/packages/connectors/src/connectors/wagmiConnectors/sequenceConnector.ts @@ -41,10 +41,9 @@ export function sequenceWallet(params: BaseSequenceConnectorOptions) { } type Provider = sequence.provider.SequenceProvider - type Properties = {} + type Properties = { params: BaseSequenceConnectorOptions } type StorageItem = { [LocalStorageKey.EthAuthProof]: string - [LocalStorageKey.ProjectAccessKey]: string [LocalStorageKey.Theme]: string [LocalStorageKey.EthAuthSettings]: string } @@ -53,12 +52,9 @@ export function sequenceWallet(params: BaseSequenceConnectorOptions) { id: 'sequence', name: 'Sequence', type: sequenceWallet.type, + params, async setup() { - if (projectAccessKey) { - await config.storage?.setItem(LocalStorageKey.ProjectAccessKey, projectAccessKey) - } - const provider = await this.getProvider() provider.on('chainChanged', (chainIdHex: string) => { config.emitter.emit('change', { chainId: normalizeChainId(chainIdHex) }) diff --git a/packages/connectors/src/connectors/wagmiConnectors/sequenceWaasConnector.ts b/packages/connectors/src/connectors/wagmiConnectors/sequenceWaasConnector.ts index 0a4c6fa5..de30bee6 100644 --- a/packages/connectors/src/connectors/wagmiConnectors/sequenceWaasConnector.ts +++ b/packages/connectors/src/connectors/wagmiConnectors/sequenceWaasConnector.ts @@ -20,7 +20,11 @@ sequenceWaasWallet.type = 'sequence-waas' as const export function sequenceWaasWallet(params: BaseSequenceWaasConnectorOptions) { type Provider = SequenceWaasProvider - type Properties = { sequenceWaas: SequenceWaaS; sequenceWaasProvider: SequenceWaasProvider } + type Properties = { + sequenceWaas: SequenceWaaS + sequenceWaasProvider: SequenceWaasProvider + params: BaseSequenceWaasConnectorOptions + } type StorageItem = { [LocalStorageKey.WaasSessionHash]: string [LocalStorageKey.WaasActiveLoginType]: string @@ -65,6 +69,7 @@ export function sequenceWaasWallet(params: BaseSequenceWaasConnectorOptions) { type: sequenceWaasWallet.type, sequenceWaas, sequenceWaasProvider, + params, async setup() { if (params.googleClientId) {