@ocap/tx-protocols 1.18.99 → 1.18.100

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.
@@ -94,7 +94,7 @@ runner.use(
94
94
  );
95
95
 
96
96
  // Ensure sender exist and not migrated
97
- runner.use(pipes.ExtractState({ from: 'tx.from', to: 'senderState', status: 'INVALID_SENDER_STATE', table: 'account' })); // prettier-ignore
97
+ runner.use(pipes.ExtractState({ from: 'tx.from', to: 'senderState', status: 'OK', table: 'account' })); // prettier-ignore
98
98
  runner.use(pipes.VerifyAccountMigration({ stateKey: 'senderState', addressKey: 'tx.from' }));
99
99
 
100
100
  // Ensure receiver exist and not migrated
@@ -184,8 +184,8 @@ runner.use(
184
184
  : statedb.account.create(receiver, account.create({ address: receiver }, context), context),
185
185
 
186
186
  delegationState
187
- ? statedb.delegation.update(itx.address, delegation.update(delegationState, { ...itx, from: tx.from, ops: merged }, context), context) // prettier-ignore
188
- : statedb.delegation.create(itx.address, delegation.create({ ...itx, from: tx.from, ops: merged }, context), context), // prettier-ignore
187
+ ? statedb.delegation.update(itx.address, delegation.update(delegationState, { ...itx, from: sender, ops: merged }, context), context) // prettier-ignore
188
+ : statedb.delegation.create(itx.address, delegation.create({ ...itx, from: sender, ops: merged }, context), context), // prettier-ignore
189
189
 
190
190
  updateVaults(),
191
191
  ]);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.99",
6
+ "version": "1.18.100",
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.99",
25
- "@arcblock/did-util": "1.18.99",
26
- "@arcblock/jwt": "1.18.99",
27
- "@arcblock/validator": "1.18.99",
28
- "@ocap/asset": "1.18.99",
29
- "@ocap/mcrypto": "1.18.99",
30
- "@ocap/merkle-tree": "1.18.99",
31
- "@ocap/message": "1.18.99",
32
- "@ocap/state": "1.18.99",
33
- "@ocap/tx-pipeline": "1.18.99",
34
- "@ocap/util": "1.18.99",
35
- "@ocap/wallet": "1.18.99",
24
+ "@arcblock/did": "1.18.100",
25
+ "@arcblock/did-util": "1.18.100",
26
+ "@arcblock/jwt": "1.18.100",
27
+ "@arcblock/validator": "1.18.100",
28
+ "@ocap/asset": "1.18.100",
29
+ "@ocap/mcrypto": "1.18.100",
30
+ "@ocap/merkle-tree": "1.18.100",
31
+ "@ocap/message": "1.18.100",
32
+ "@ocap/state": "1.18.100",
33
+ "@ocap/tx-pipeline": "1.18.100",
34
+ "@ocap/util": "1.18.100",
35
+ "@ocap/wallet": "1.18.100",
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": "1018f219618a13decf778998529c83befcab6887"
50
+ "gitHead": "600fdfe8e06f2c4db05739d541c47202c92a3c9e"
51
51
  }