@ocap/tx-protocols 1.13.67 → 1.13.68

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.
@@ -264,7 +264,10 @@ runner.use(
264
264
  ),
265
265
  ]);
266
266
 
267
- context.stakeStates = newStakeStates;
267
+ // to avoid this to be incorrectly indexed
268
+ delete context.stakeState;
269
+
270
+ context.stakeStates = newStakeStates.filter((x) => updates.stake[x.address]);
268
271
  context.accountStates = newAccountStates;
269
272
  context.blockState = newBlockState;
270
273
 
@@ -312,7 +312,7 @@ runner.use(
312
312
  ]);
313
313
 
314
314
  context.senderState = newSenderState;
315
- context.stakeStates = newStakeStates;
315
+ context.stakeStates = newStakeStates.filter((x) => context.stakeUpdates[x.address]);
316
316
  context.newSenderStates = newSenderStates;
317
317
  context.rollupState = newRollupState;
318
318
  context.rollupBlockState = rollupBlockState;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.13.67",
6
+ "version": "1.13.68",
7
7
  "description": "Predefined tx pipeline sets to execute certain type of transactions",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,17 +19,17 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@arcblock/did": "1.13.67",
23
- "@arcblock/did-util": "1.13.67",
24
- "@ocap/asset": "1.13.67",
25
- "@ocap/mcrypto": "1.13.67",
26
- "@ocap/merkle-tree": "1.13.67",
27
- "@ocap/message": "1.13.67",
28
- "@ocap/state": "1.13.67",
29
- "@ocap/tx-pipeline": "1.13.67",
30
- "@ocap/util": "1.13.67",
31
- "@ocap/validator": "1.13.67",
32
- "@ocap/wallet": "1.13.67",
22
+ "@arcblock/did": "1.13.68",
23
+ "@arcblock/did-util": "1.13.68",
24
+ "@ocap/asset": "1.13.68",
25
+ "@ocap/mcrypto": "1.13.68",
26
+ "@ocap/merkle-tree": "1.13.68",
27
+ "@ocap/message": "1.13.68",
28
+ "@ocap/state": "1.13.68",
29
+ "@ocap/tx-pipeline": "1.13.68",
30
+ "@ocap/util": "1.13.68",
31
+ "@ocap/validator": "1.13.68",
32
+ "@ocap/wallet": "1.13.68",
33
33
  "debug": "^4.3.2",
34
34
  "empty-value": "^1.0.1",
35
35
  "lodash": "^4.17.21",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "jest": "^27.3.1"
44
44
  },
45
- "gitHead": "866f6a0dbf4fc22425b8583d84610880472a3109"
45
+ "gitHead": "d84324870fe9dca3619df362ba09219dd420f274"
46
46
  }