@ocap/tx-pipeline 1.18.97 → 1.18.99

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 = Date.now();
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.97",
6
+ "version": "1.18.99",
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.97",
33
- "@arcblock/did-util": "1.18.97",
34
- "@ocap/mcrypto": "1.18.97",
35
- "@ocap/message": "1.18.97",
36
- "@ocap/state": "1.18.97",
37
- "@ocap/util": "1.18.97",
38
- "@ocap/wallet": "1.18.97",
32
+ "@arcblock/did": "1.18.99",
33
+ "@arcblock/did-util": "1.18.99",
34
+ "@ocap/mcrypto": "1.18.99",
35
+ "@ocap/message": "1.18.99",
36
+ "@ocap/state": "1.18.99",
37
+ "@ocap/util": "1.18.99",
38
+ "@ocap/wallet": "1.18.99",
39
39
  "debug": "^4.3.4",
40
40
  "empty-value": "^1.0.1",
41
41
  "lodash": "^4.17.21"
42
42
  },
43
- "gitHead": "691aabefd37f53b6fbcf771ce130f09197f0b268"
43
+ "gitHead": "1018f219618a13decf778998529c83befcab6887"
44
44
  }