@clonegod/ttd-sui-common 1.0.63 → 1.0.64

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.
@@ -106,7 +106,7 @@ class AbstractSuiDexTradePlus extends dist_1.AbastrcatTrade {
106
106
  if (!wallet) {
107
107
  continue;
108
108
  }
109
- const tokenAsset = (_b = assets.tokens) === null || _b === void 0 ? void 0 : _b.find((token) => token.address.toLowerCase() === inputToken.address.toLowerCase());
109
+ const tokenAsset = (_b = assets.tokens) === null || _b === void 0 ? void 0 : _b.find((token) => (0, index_1.normalizeSuiTokenAddress)(token.address.toLowerCase()) === (0, index_1.normalizeSuiTokenAddress)(inputToken.address.toLowerCase()));
110
110
  let tokenBalance = (tokenAsset === null || tokenAsset === void 0 ? void 0 : tokenAsset.balance) || '0';
111
111
  const balanceDecimal = new decimal_js_1.default(tokenBalance);
112
112
  if (balanceDecimal.gte(requiredAmount)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sui-common",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Sui common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",