@tanakayuto/intmax402-express 0.2.1 → 0.2.2
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/dist/verify-payment.js +1 -1
- package/package.json +8 -8
package/dist/verify-payment.js
CHANGED
|
@@ -66,7 +66,7 @@ async function verifyPayment(txHash, expectedAmount, serverAddress, tokenIndex)
|
|
|
66
66
|
let response = await client.fetchTransfers({ cursor: null, limit: 100 });
|
|
67
67
|
let transfers = [...response.items];
|
|
68
68
|
// Check next page if not found yet and more items exist
|
|
69
|
-
if (!transfers.find((tx) => tx.digest === txHash) && response.pagination
|
|
69
|
+
if (!transfers.find((tx) => tx.digest === txHash) && response.pagination?.has_more && response.pagination?.next_cursor != null) {
|
|
70
70
|
const response2 = await client.fetchTransfers({ cursor: response.pagination.next_cursor, limit: 100 });
|
|
71
71
|
transfers = transfers.concat(response2.items);
|
|
72
72
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanakayuto/intmax402-express",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"clean": "rm -rf dist",
|
|
9
|
-
"typecheck": "tsc --noEmit"
|
|
10
|
-
},
|
|
11
6
|
"dependencies": {
|
|
12
|
-
"@tanakayuto/intmax402-core": "0.2.
|
|
7
|
+
"@tanakayuto/intmax402-core": "0.2.2",
|
|
13
8
|
"ethers": "^6.16.0",
|
|
14
9
|
"intmax2-server-sdk": "^1.5.2"
|
|
15
10
|
},
|
|
@@ -42,5 +37,10 @@
|
|
|
42
37
|
"express",
|
|
43
38
|
"web3",
|
|
44
39
|
"zk"
|
|
45
|
-
]
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc",
|
|
43
|
+
"clean": "rm -rf dist",
|
|
44
|
+
"typecheck": "tsc --noEmit"
|
|
45
|
+
}
|
|
46
46
|
}
|