@ocap/tx-pipeline 1.13.57 → 1.13.61
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.
@@ -48,7 +48,7 @@ module.exports = function CreateExtractStatePipe({ from, to, table, status = 'OK
|
|
48
48
|
if (type.role === types.RoleType.ROLE_ASSET) {
|
49
49
|
return context.statedb.asset.get(x, context);
|
50
50
|
}
|
51
|
-
if (type.role === types.RoleType.
|
51
|
+
if (type.role === types.RoleType.ROLE_DELEGATION) {
|
52
52
|
return context.statedb.delegation.get(x, context);
|
53
53
|
}
|
54
54
|
if (type.role === types.RoleType.ROLE_TOKEN) {
|
@@ -32,6 +32,13 @@ module.exports = function CreateVerifyTokenBalancePipe({ ownerKey, conditionKey,
|
|
32
32
|
for (const requirement of requirements) {
|
33
33
|
const { address, value } = requirement;
|
34
34
|
|
35
|
+
// ensure requirement is valid
|
36
|
+
if (!address || !value) {
|
37
|
+
return next(
|
38
|
+
new Error('INTERNAL', 'Invalid requirement params provided for VerifyTokenBalance pipe', { persist: true })
|
39
|
+
);
|
40
|
+
}
|
41
|
+
|
35
42
|
// ensure secondary token
|
36
43
|
if (isEmpty(actual)) {
|
37
44
|
return next(
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "1.13.
|
6
|
+
"version": "1.13.61",
|
7
7
|
"description": "Pipeline runner and common pipelines to process transactions",
|
8
8
|
"main": "lib/index.js",
|
9
9
|
"files": [
|
@@ -26,16 +26,16 @@
|
|
26
26
|
"elliptic": "6.5.3"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@arcblock/did": "1.13.
|
30
|
-
"@arcblock/did-util": "1.13.
|
31
|
-
"@ocap/mcrypto": "1.13.
|
32
|
-
"@ocap/message": "1.13.
|
33
|
-
"@ocap/state": "1.13.
|
34
|
-
"@ocap/util": "1.13.
|
35
|
-
"@ocap/wallet": "1.13.
|
29
|
+
"@arcblock/did": "1.13.61",
|
30
|
+
"@arcblock/did-util": "1.13.61",
|
31
|
+
"@ocap/mcrypto": "1.13.61",
|
32
|
+
"@ocap/message": "1.13.61",
|
33
|
+
"@ocap/state": "1.13.61",
|
34
|
+
"@ocap/util": "1.13.61",
|
35
|
+
"@ocap/wallet": "1.13.61",
|
36
36
|
"debug": "^4.3.2",
|
37
37
|
"empty-value": "^1.0.1",
|
38
38
|
"lodash": "^4.17.21"
|
39
39
|
},
|
40
|
-
"gitHead": "
|
40
|
+
"gitHead": "79d07bbde4df1d0d37afe76aaa1eaa2f30cc55a7"
|
41
41
|
}
|