@ocap/state 1.19.1 → 1.19.3
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.
- package/lib/index.js +1 -0
- package/lib/states/tx.js +4 -4
- package/package.json +9 -9
package/lib/index.js
CHANGED
package/lib/states/tx.js
CHANGED
|
@@ -19,11 +19,11 @@ const FORGE_FEE_RECEIVER = 'z1EJUBdbPYqMiWHfRZvSAvbYeWcEHB19Xyfc';
|
|
|
19
19
|
const QLDB_MIGRATION_TIME = new Date('2021-05-03T12:46:56.245Z');
|
|
20
20
|
|
|
21
21
|
function eachReceipts(receipts, callback) {
|
|
22
|
-
(receipts || []).
|
|
23
|
-
(receipt.changes || []).
|
|
24
|
-
callback(receipt.address, change);
|
|
25
|
-
});
|
|
22
|
+
const result = (receipts || []).map((receipt) => {
|
|
23
|
+
return (receipt.changes || []).map((change) => callback(receipt.address, change));
|
|
26
24
|
});
|
|
25
|
+
|
|
26
|
+
return result.flat();
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function groupReceiptTokenChanges(receipts) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.19.
|
|
6
|
+
"version": "1.19.3",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"coverage": "start-server-and-test start http://127.0.0.1:4001 test:ci"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did": "1.19.
|
|
22
|
-
"@arcblock/validator": "1.19.
|
|
23
|
-
"@ocap/contract": "1.19.
|
|
24
|
-
"@ocap/mcrypto": "1.19.
|
|
25
|
-
"@ocap/message": "1.19.
|
|
26
|
-
"@ocap/util": "1.19.
|
|
27
|
-
"@ocap/wallet": "1.19.
|
|
21
|
+
"@arcblock/did": "1.19.3",
|
|
22
|
+
"@arcblock/validator": "1.19.3",
|
|
23
|
+
"@ocap/contract": "1.19.3",
|
|
24
|
+
"@ocap/mcrypto": "1.19.3",
|
|
25
|
+
"@ocap/message": "1.19.3",
|
|
26
|
+
"@ocap/util": "1.19.3",
|
|
27
|
+
"@ocap/wallet": "1.19.3",
|
|
28
28
|
"bloom-filters": "^1.3.9",
|
|
29
29
|
"lodash": "^4.17.21"
|
|
30
30
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"keywords": [],
|
|
36
36
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
37
37
|
"license": "MIT",
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "756076dad0df7468beecc95c8effd55f8c4c4f49"
|
|
39
39
|
}
|