@@ -145,17 +145,17 @@ export class ModalFactory<T extends FactoryModals = FactoryModals> {
145145 return container ;
146146 }
147147
148- createDeeplink ( connectionRequest ?: ConnectionRequest ) {
148+ createConnectionDeeplink ( connectionRequest ?: ConnectionRequest ) {
149149 if ( ! connectionRequest ) {
150- throw new Error ( 'createDeeplink can only be called with a connection request' ) ;
150+ throw new Error ( 'createConnectionDeeplink can only be called with a connection request' ) ;
151151 }
152152 const json = JSON . stringify ( connectionRequest ) ;
153153 const compressed = compressString ( json ) ;
154154 const urlEncoded = encodeURIComponent ( compressed ) ;
155155 return `${ METAMASK_DEEPLINK_BASE } /mwp?p=${ urlEncoded } &c=1` ;
156156 }
157157
158- createUniversalLink ( connectionRequest ?: ConnectionRequest ) {
158+ createConnectionUniversalLink ( connectionRequest ?: ConnectionRequest ) {
159159 if ( ! connectionRequest ) {
160160 return `${ METAMASK_CONNECT_BASE_URL } ` ;
161161 }
@@ -186,7 +186,7 @@ export class ModalFactory<T extends FactoryModals = FactoryModals> {
186186
187187 const parentElement = this . getMountedContainer ( ) ;
188188 const connectionRequest = await createConnectionRequest ( ) ;
189- const qrCodeLink = this . createDeeplink ( connectionRequest ) ;
189+ const qrCodeLink = this . createConnectionDeeplink ( connectionRequest ) ;
190190
191191 const modal : Modal < any > = new this . options . InstallModal ( {
192192 expiresIn :
@@ -197,7 +197,7 @@ export class ModalFactory<T extends FactoryModals = FactoryModals> {
197197 link : qrCodeLink ,
198198 sdkVersion : getVersion ( ) ,
199199 generateQRCode : async ( request : ConnectionRequest ) =>
200- this . createDeeplink ( request ) ,
200+ this . createConnectionDeeplink ( request ) ,
201201 onClose : this . onCloseModal . bind ( this ) ,
202202 startDesktopOnboarding : this . onStartDesktopOnboarding . bind ( this ) ,
203203 createConnectionRequest,
0 commit comments