@clonegod/ttd-sui-common 1.0.47 → 1.0.48

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.
@@ -67,7 +67,8 @@ class TransactionResultChecker extends trade_1.AbstractTransactionResultCheck {
67
67
  (0, dist_1.log_info)(`re-fetch tx result by ledgerService start, i=${i}, txid=${this.txid}`);
68
68
  try {
69
69
  let txReceipt = yield this.leadgerService.getTransaction(this.txid, ['*']);
70
- if (!txReceipt) {
70
+ if (!txReceipt || (0, dist_1.isEmpty)(txReceipt)) {
71
+ console.log('txReceipt is empty', txReceipt);
71
72
  continue;
72
73
  }
73
74
  const success = (_c = (_b = (_a = txReceipt.transaction) === null || _a === void 0 ? void 0 : _a.effects) === null || _b === void 0 ? void 0 : _b.status) === null || _c === void 0 ? void 0 : _c.success;
@@ -77,6 +78,10 @@ class TransactionResultChecker extends trade_1.AbstractTransactionResultCheck {
77
78
  this.processTransactionResult(txReceipt, 'grpc2');
78
79
  break;
79
80
  }
81
+ else {
82
+ (0, dist_1.log_warn)(`re-fetch tx result by ledgerService failed, i=${i}, txid=${this.txid}`);
83
+ console.dir(txReceipt, { depth: 4 });
84
+ }
80
85
  }
81
86
  catch (error) {
82
87
  (0, dist_1.log_warn)(`re-fetch tx result by ledgerService failed, i=${i}, txid=${this.txid}, error=${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sui-common",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Sui common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",