zetrix-connect-wallet-sdk-test 1.0.1 → 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.
Files changed (2) hide show
  1. package/lib/index.js +12 -13
  2. 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,19 +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
- message: param.message
236
- }
237
-
238
- if (!this.isQrcode) {
239
- this.linkTo.createHostParam(urlObj)
240
- }
241
240
  })
242
241
  }
243
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zetrix-connect-wallet-sdk-test",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A library for mobile wallet and non-Chrome browsers to connect with the Zetrix blockchain.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {