apenft-js-tron 2.0.1 → 2.0.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.
@@ -89,7 +89,10 @@ function checkApproveTokenTransferProxy(exchangeContract, erc20Contract, account
89
89
  case 2:
90
90
  allowAmount = _a.sent();
91
91
  if (new constants_1.BigNumber(allowAmount.toString()).eq(0)) {
92
- throw "Error";
92
+ throw {
93
+ code: "1101",
94
+ data: { erc20Address: erc20Contract.address }
95
+ };
93
96
  }
94
97
  return [2 /*return*/, true];
95
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apenft-js-tron",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Javascript SDK for the APENFT ",
5
5
  "main": "dist/index.js",
6
6
  "author": "Project APENFT Developers",