File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @web3-onboard/passport" ,
3- "version" : " 2.1.1" ,
3+ "version" : " 2.1.2-alpha. 1" ,
44 "description" : " passport" ,
55 "module" : " dist/index.js" ,
66 "browser" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ function passport(options: PassportOptions): WalletInit {
202202 return {
203203 label : 'Passport' ,
204204 getIcon : async ( ) => ( await import ( './icon' ) ) . default ,
205- getInterface : async ( ) => {
205+ getInterface : async ( { EventEmitter } ) => {
206206 const { Passport, Network } = await import ( '@0xpass/passport' )
207207 const { createPassportClient } = await import ( '@0xpass/passport-viem' )
208208 const { http } = await import ( 'viem' )
@@ -288,6 +288,9 @@ function passport(options: PassportOptions): WalletInit {
288288
289289 const provider = createEIP1193Provider ( client )
290290
291+ const events = new EventEmitter ( )
292+ provider . on = events . on . bind ( events )
293+
291294 return {
292295 instance : passport ,
293296 provider : provider
You can’t perform that action at this time.
0 commit comments