@openocean.finance/openocean-sdk 1.2.46 → 1.2.47

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.
@@ -69,7 +69,7 @@ function getAllowance(account, tokenAddress, decimals, chainName, approveContrac
69
69
  case 5:
70
70
  approve = _a.sent();
71
71
  approve = (approve && approve.approve) || approve || 0;
72
- return [2 /*return*/, utils_1.utils.getFixed(utils_1.utils.decimals2Amount(approve || 0, decimals), 6)];
72
+ return [2 /*return*/, utils_1.utils.decimals2Amount(approve || 0, decimals)];
73
73
  case 6:
74
74
  e_1 = _a.sent();
75
75
  console.log("triggerConfirmedConstantContract", e_1);
@@ -86,7 +86,7 @@ function getAllowance(account, tokenAddress, decimals, chainName, approveContrac
86
86
  .call()];
87
87
  case 9:
88
88
  approve = _a.sent();
89
- return [2 /*return*/, utils_1.utils.getFixed(utils_1.utils.decimals2Amount(approve || 0, decimals), 6)];
89
+ return [2 /*return*/, utils_1.utils.decimals2Amount(approve || 0, decimals)];
90
90
  case 10:
91
91
  e_2 = _a.sent();
92
92
  return [2 /*return*/, '-1'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.2.46",
3
+ "version": "1.2.47",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {