@@ -10,7 +10,7 @@ const isBrowser = typeof window !== 'undefined'
1010export 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