@ocap/tx-pipeline 1.18.97 → 1.18.98
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ const isDelegationSufficient = (requirements, limitation) => {
|
|
22
22
|
return { sufficient: true };
|
23
23
|
}
|
24
24
|
|
25
|
-
const now = Date.now();
|
25
|
+
const now = Math.floor(Date.now() / 1000);
|
26
26
|
|
27
27
|
for (const requirement of requirements) {
|
28
28
|
if (requirement.type === 'token') {
|
@@ -116,7 +116,7 @@ const isDelegationSufficient = (requirements, limitation) => {
|
|
116
116
|
}
|
117
117
|
|
118
118
|
limit.txSent = (limit.txSent || 0) + 1;
|
119
|
-
limit.lastTx =
|
119
|
+
limit.lastTx = now;
|
120
120
|
|
121
121
|
continue;
|
122
122
|
}
|
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.98",
|
7
7
|
"description": "Pipeline runner and common pipelines to process transactions",
|
8
8
|
"main": "lib/index.js",
|
9
9
|
"files": [
|
@@ -29,16 +29,16 @@
|
|
29
29
|
"elliptic": "6.5.3"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@arcblock/did": "1.18.
|
33
|
-
"@arcblock/did-util": "1.18.
|
34
|
-
"@ocap/mcrypto": "1.18.
|
35
|
-
"@ocap/message": "1.18.
|
36
|
-
"@ocap/state": "1.18.
|
37
|
-
"@ocap/util": "1.18.
|
38
|
-
"@ocap/wallet": "1.18.
|
32
|
+
"@arcblock/did": "1.18.98",
|
33
|
+
"@arcblock/did-util": "1.18.98",
|
34
|
+
"@ocap/mcrypto": "1.18.98",
|
35
|
+
"@ocap/message": "1.18.98",
|
36
|
+
"@ocap/state": "1.18.98",
|
37
|
+
"@ocap/util": "1.18.98",
|
38
|
+
"@ocap/wallet": "1.18.98",
|
39
39
|
"debug": "^4.3.4",
|
40
40
|
"empty-value": "^1.0.1",
|
41
41
|
"lodash": "^4.17.21"
|
42
42
|
},
|
43
|
-
"gitHead": "
|
43
|
+
"gitHead": "41138be9ecae27624397a8b5ee270e2101944560"
|
44
44
|
}
|