@ocap/indexdb 1.18.21 → 1.18.22

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/util.js +3 -0
  2. package/package.json +4 -4
package/lib/util.js CHANGED
@@ -213,6 +213,9 @@ const createIndexedTransaction = async (tx, ctx, indexdb) => {
213
213
  // stakes
214
214
  if (ctx.stakeState) {
215
215
  tx.stakes.push(ctx.stakeState.address);
216
+ if (ctx.txType === 'fg:t:slash_stake') {
217
+ tx.accounts.push(ctx.stakeState.sender);
218
+ }
216
219
  }
217
220
  if (Array.isArray(ctx.stakeStates)) {
218
221
  tx.stakes.push(...ctx.stakeStates.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.21",
6
+ "version": "1.18.22",
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.21",
29
- "@ocap/util": "1.18.21",
28
+ "@ocap/state": "1.18.22",
29
+ "@ocap/util": "1.18.22",
30
30
  "kareem": "^2.4.1",
31
31
  "lodash": "^4.17.21"
32
32
  },
33
- "gitHead": "be5df6f70d48c8c5026cd7bb42d53b270ddeb344"
33
+ "gitHead": "7f833da5b1ed75fd2f2427925d0cbb84af33b36b"
34
34
  }