@ocap/indexdb 1.18.79 → 1.18.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/util.js +4 -0
  2. package/package.json +4 -4
package/lib/util.js CHANGED
@@ -176,6 +176,10 @@ const createIndexedTransaction = async (tx, ctx, indexdb) => {
176
176
  // assets
177
177
  if (ctx.assetState) {
178
178
  tx.assets.push(ctx.assetState.address);
179
+ // index update asset for owners, so that wallet can sync this tx
180
+ if (ctx.txType === 'fg:t:update_asset') {
181
+ tx.accounts.push(ctx.assetState.owner);
182
+ }
179
183
  }
180
184
  if (ctx.assetStates && Array.isArray(ctx.assetStates)) {
181
185
  tx.assets.push(...ctx.assetStates.map((x) => x.address));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.79",
6
+ "version": "1.18.81",
7
7
  "description": "Defines the basic interface for OCAP IndexDB",
8
8
  "main": "lib/main.js",
9
9
  "files": [
@@ -25,10 +25,10 @@
25
25
  "jest": "^27.5.1"
26
26
  },
27
27
  "dependencies": {
28
- "@ocap/state": "1.18.79",
29
- "@ocap/util": "1.18.79",
28
+ "@ocap/state": "1.18.81",
29
+ "@ocap/util": "1.18.81",
30
30
  "kareem": "^2.4.1",
31
31
  "lodash": "^4.17.21"
32
32
  },
33
- "gitHead": "158c6265a6746d9a7ddae8b68cb00f6667f5f248"
33
+ "gitHead": "8233fab42f6cf2b12033dbacbdd9206b5ccaffcc"
34
34
  }