@typus/typus-sdk 1.0.8 → 1.0.9

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/lib/mnemonic.json CHANGED
@@ -1,3 +1 @@
1
- {
2
- "MNEMONIC": "plug grain matter asthma aware critic can lottery blouse uncover sauce speak"
3
- }
1
+ { "MNEMONIC": "shock shop drink choice mystery bean love dream comic fetch boss canyon" }
@@ -252,12 +252,14 @@ function getUserShares(user_share_registry, provider, user) {
252
252
  objsInfo.forEach(function (info) {
253
253
  // @ts-ignore
254
254
  var fields = info.data.content.fields;
255
- var share = {
256
- index: fields.name.fields.index,
257
- tag: fields.name.fields.tag,
258
- value: fields.value.fields.value,
259
- };
260
- shares.push(share);
255
+ if (fields.value.fields.exists) {
256
+ var share = {
257
+ index: fields.name.fields.index,
258
+ tag: fields.name.fields.tag,
259
+ value: fields.value.fields.value,
260
+ };
261
+ shares.push(share);
262
+ }
261
263
  });
262
264
  return [2 /*return*/, shares];
263
265
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.0.8",
5
+ "version": "1.0.9",
6
6
  "dependencies": {
7
7
  "@mysten/sui.js": "^0.32.0",
8
8
  "@types/node": "^17.0.0",