@ape.swap/bonds-sdk 1.0.518 → 1.0.519

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.
@@ -107,30 +107,25 @@ var BondModal = function (_a) {
107
107
  //You approve the token, not the contract (this code will have to be updated for zap)
108
108
  var handleApprove = function () { return __awaiter(void 0, void 0, void 0, function () {
109
109
  var tokenAddress, tx, error_2;
110
- var _a;
111
- return __generator(this, function (_b) {
112
- switch (_b.label) {
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
113
112
  case 0:
114
- console.log('---!');
115
- console.log((_a = bondData[0]) === null || _a === void 0 ? void 0 : _a.principalToken);
116
- console.log(account);
117
113
  tokenAddress = bondData[0].principalToken;
118
- _b.label = 1;
114
+ _a.label = 1;
119
115
  case 1:
120
- _b.trys.push([1, 3, , 4]);
121
- console.log('BBBBB');
116
+ _a.trys.push([1, 3, , 4]);
122
117
  return [4 /*yield*/, writeContract({
123
118
  address: tokenAddress,
124
119
  abi: ERC_20_ABI,
125
120
  functionName: 'approve',
126
- args: [account, adjustDecimals(inputValue)],
121
+ args: [account, inputValue],
127
122
  })];
128
123
  case 2:
129
- tx = _b.sent();
124
+ tx = _a.sent();
130
125
  console.log('Transaction:', tx);
131
126
  return [3 /*break*/, 4];
132
127
  case 3:
133
- error_2 = _b.sent();
128
+ error_2 = _a.sent();
134
129
  console.error('Approval failed:', error_2);
135
130
  return [3 /*break*/, 4];
136
131
  case 4: return [2 /*return*/];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.518",
6
+ "version": "1.0.519",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",