@@ -26,7 +26,6 @@ import { UniversalConnector } from './connectors/UniversalConnector';
2626type ConfigParams = Partial < CreateConfigParameters > & {
2727 networks : readonly [ Chain , ...Chain [ ] ] ;
2828 projectId : string ;
29- connectors ?: Connector [ ] ;
3029} ;
3130
3231export class WagmiAdapter extends EVMAdapter {
@@ -46,11 +45,6 @@ export class WagmiAdapter extends EVMAdapter {
4645 }
4746
4847 private createWagmiInternalConfig ( configParams : ConfigParams ) : Config {
49- // Connectors are typically added via wagmiConfig.connectors, but here AppKit manages the connection.
50- // We'll use the `connect` action with our dynamically created connector instance.
51- // So, the `connectors` array for createConfig can be empty and is added later.
52- const initialConnectors : ( ( ) => Connector ) [ ] = [ ] ;
53-
5448 const transportsArr = configParams . networks . map ( chain => [
5549 chain . id ,
5650 getTransport ( { chainId : chain . id , projectId : configParams . projectId } )
@@ -59,7 +53,7 @@ export class WagmiAdapter extends EVMAdapter {
5953
6054 return createConfig ( {
6155 chains : configParams . networks ,
62- connectors : initialConnectors , // Empty, as we connect programmatically
56+ connectors : [ ... ( configParams . connectors ?? [ ] ) ] ,
6357 transports,
6458 multiInjectedProviderDiscovery : false
6559 } ) ;
0 commit comments