Skip to content

Commit a73cad2

Browse files
committed
chore: fix formatting
1 parent a0011aa commit a73cad2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/connect/src/connectors/ecosystem/provider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export class EcosystemWalletTransportProvider extends ethers.AbstractProvider im
2727
this.currentNetwork = ethers.Network.from(initialChainId)
2828
}
2929

30-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3130
async request({ method, params }: { method: string; params?: any[] }) {
3231
if (method === 'wallet_switchEthereumChain') {
3332
const chainId = normalizeChainId(params?.[0].chainId)

packages/connect/src/connectors/ecosystem/providerTransport.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const isBrowser = typeof window !== 'undefined'
1010
export class ProviderTransport {
1111
private walletOrigin: string
1212
private walletWindow: Window | null = null
13-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
13+
1414
private callbacks: Map<string, (response: any) => void> = new Map()
1515
private connectionState: ConnectionState = 'disconnected'
1616
private session: SessionData | undefined
@@ -134,7 +134,6 @@ export class ProviderTransport {
134134
})
135135
}
136136

137-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
138137
async sendRequest(method: string, params: any[], chainId: number): Promise<any> {
139138
if (!isBrowser) {
140139
throw new Error('ProviderTransport is only available in browser environment')
@@ -180,7 +179,6 @@ export class ProviderTransport {
180179
})
181180
}
182181

183-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
184182
private openWalletAndPostMessage(message: any): Promise<void> {
185183
if (!isBrowser) {
186184
return Promise.reject(new Error('ProviderTransport is only available in browser environment'))
@@ -211,7 +209,6 @@ export class ProviderTransport {
211209
})
212210
}
213211

214-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
215212
private postMessageToWallet(message: any) {
216213
console.log('Posting message to wallet:', message)
217214
this.walletWindow!.postMessage(message, {
@@ -232,7 +229,9 @@ export class ProviderTransport {
232229
}
233230

234231
private handleMessage = (event: MessageEvent) => {
235-
if (event.origin !== this.walletOrigin) return
232+
if (event.origin !== this.walletOrigin) {
233+
return
234+
}
236235

237236
const response = event.data
238237
const callback = this.callbacks.get(response.id)

0 commit comments

Comments
 (0)