@ocap/indexdb 1.18.21 → 1.18.22
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/util.js +3 -0
- 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.
|
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.
|
29
|
-
"@ocap/util": "1.18.
|
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": "
|
33
|
+
"gitHead": "7f833da5b1ed75fd2f2427925d0cbb84af33b36b"
|
34
34
|
}
|