@ocap/tx-protocols 1.18.104 → 1.18.106

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.
@@ -269,13 +269,17 @@ runner.use(
269
269
  // update accounts(proposer, publisher, validator)
270
270
  Promise.all(
271
271
  accountStates.map((x) => {
272
- let updateSet = applyTokenChange(x, updates.account[x.address]);
273
- if (x.address === senderState.address) {
274
- updateSet.nonce = tx.nonce;
275
- updateSet = Object.assign(updateSet, senderChange ? applyTokenChange(updateSet, senderChange) : {});
272
+ if (updates.account[x.address]) {
273
+ let updateSet = applyTokenChange(x, updates.account[x.address]);
274
+ if (x.address === senderState.address) {
275
+ updateSet.nonce = tx.nonce;
276
+ updateSet = Object.assign(updateSet, senderChange ? applyTokenChange(updateSet, senderChange) : {});
277
+ }
278
+
279
+ return statedb.account.update(x.address, account.update(x, updateSet, context), context);
276
280
  }
277
281
 
278
- return statedb.account.update(x.address, account.update(x, updateSet, context), context);
282
+ return x;
279
283
  })
280
284
  ),
281
285
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.104",
6
+ "version": "1.18.106",
7
7
  "description": "Predefined tx pipeline sets to execute certain type of transactions",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -21,18 +21,18 @@
21
21
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@arcblock/did": "1.18.104",
25
- "@arcblock/did-util": "1.18.104",
26
- "@arcblock/jwt": "1.18.104",
27
- "@arcblock/validator": "1.18.104",
28
- "@ocap/asset": "1.18.104",
29
- "@ocap/mcrypto": "1.18.104",
30
- "@ocap/merkle-tree": "1.18.104",
31
- "@ocap/message": "1.18.104",
32
- "@ocap/state": "1.18.104",
33
- "@ocap/tx-pipeline": "1.18.104",
34
- "@ocap/util": "1.18.104",
35
- "@ocap/wallet": "1.18.104",
24
+ "@arcblock/did": "1.18.106",
25
+ "@arcblock/did-util": "1.18.106",
26
+ "@arcblock/jwt": "1.18.106",
27
+ "@arcblock/validator": "1.18.106",
28
+ "@ocap/asset": "1.18.106",
29
+ "@ocap/mcrypto": "1.18.106",
30
+ "@ocap/merkle-tree": "1.18.106",
31
+ "@ocap/message": "1.18.106",
32
+ "@ocap/state": "1.18.106",
33
+ "@ocap/tx-pipeline": "1.18.106",
34
+ "@ocap/util": "1.18.106",
35
+ "@ocap/wallet": "1.18.106",
36
36
  "debug": "^4.3.4",
37
37
  "deep-diff": "^1.0.2",
38
38
  "empty-value": "^1.0.1",
@@ -47,5 +47,5 @@
47
47
  "jest": "^27.5.1",
48
48
  "start-server-and-test": "^1.14.0"
49
49
  },
50
- "gitHead": "c8092aee1964209446020c17fc7c648879e4309d"
50
+ "gitHead": "2d9b3d3e374effe708db4c0ff32fef0d3683e324"
51
51
  }