File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/passport" ,
3
- "version" : " 2.1.1" ,
3
+ "version" : " 2.1.2-alpha. 1" ,
4
4
"description" : " passport" ,
5
5
"module" : " dist/index.js" ,
6
6
"browser" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ function passport(options: PassportOptions): WalletInit {
202
202
return {
203
203
label : 'Passport' ,
204
204
getIcon : async ( ) => ( await import ( './icon' ) ) . default ,
205
- getInterface : async ( ) => {
205
+ getInterface : async ( { EventEmitter } ) => {
206
206
const { Passport, Network } = await import ( '@0xpass/passport' )
207
207
const { createPassportClient } = await import ( '@0xpass/passport-viem' )
208
208
const { http } = await import ( 'viem' )
@@ -288,6 +288,9 @@ function passport(options: PassportOptions): WalletInit {
288
288
289
289
const provider = createEIP1193Provider ( client )
290
290
291
+ const events = new EventEmitter ( )
292
+ provider . on = events . on . bind ( events )
293
+
291
294
return {
292
295
instance : passport ,
293
296
provider : provider
You can’t perform that action at this time.
0 commit comments