zetrix-connect-wallet-sdk-test 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/lib/index.js +12 -12
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -210,6 +210,18 @@ class ZetrixWalletConnect {
|
|
210
210
|
} else {
|
211
211
|
return new Promise((resolve, reject) => {
|
212
212
|
this.auth().then(authRes => {
|
213
|
+
let urlObj = {
|
214
|
+
linkTo: 'H5_' + sdkType.bindAndSignMessage,
|
215
|
+
type: 'H5_' + sdkType.bindAndSignMessage,
|
216
|
+
sessionId: getSessionId(),
|
217
|
+
host: getWindowUrl(),
|
218
|
+
icon: getWindowICO(),
|
219
|
+
message: param.message
|
220
|
+
}
|
221
|
+
|
222
|
+
if (!this.isQrcode) {
|
223
|
+
this.linkTo.createHostParam(urlObj)
|
224
|
+
}
|
213
225
|
this.signMessage(param).then(signRes => {
|
214
226
|
resolve({
|
215
227
|
code: 0,
|
@@ -225,18 +237,6 @@ class ZetrixWalletConnect {
|
|
225
237
|
}).catch(authError => {
|
226
238
|
reject(authError)
|
227
239
|
})
|
228
|
-
|
229
|
-
let urlObj = {
|
230
|
-
linkTo: 'H5_' + sdkType.bindAndSignMessage,
|
231
|
-
type: 'H5_' + sdkType.bindAndSignMessage,
|
232
|
-
sessionId: getSessionId(),
|
233
|
-
host: getWindowUrl(),
|
234
|
-
icon: getWindowICO()
|
235
|
-
}
|
236
|
-
|
237
|
-
if (!this.isQrcode) {
|
238
|
-
this.linkTo.createHostParam(urlObj)
|
239
|
-
}
|
240
240
|
})
|
241
241
|
}
|
242
242
|
}
|
package/package.json
CHANGED