@openocean.finance/openocean-sdk 1.6.7 → 1.6.8
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.
- package/lib/swapSdk/Swap.js +4 -2
- package/package.json +1 -1
package/lib/swapSdk/Swap.js
CHANGED
|
@@ -193,7 +193,7 @@ var Swap = /** @class */ (function () {
|
|
|
193
193
|
Swap.prototype.sendSolanaTransaction = function () {
|
|
194
194
|
var _a, _b;
|
|
195
195
|
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
-
var res, transaction, signed, result, bytes, _c, msg, data, bytes, serializedTransaction, blockhashWithExpiryBlockHeight, blockhashInfo, lastValidBlockHeight, transactionResponse, e_1;
|
|
196
|
+
var res, transaction, signed, result, bytes, _c, msg, data, bytes, serializedTransaction, blockhashWithExpiryBlockHeight, blockhashInfo, lastValidBlockHeight, transactionResponse, e_1, sdf;
|
|
197
197
|
return __generator(this, function (_d) {
|
|
198
198
|
switch (_d.label) {
|
|
199
199
|
case 0:
|
|
@@ -250,7 +250,7 @@ var Swap = /** @class */ (function () {
|
|
|
250
250
|
lastValidBlockHeight: res.lastValidBlockHeight,
|
|
251
251
|
};
|
|
252
252
|
return [3 /*break*/, 11];
|
|
253
|
-
case 8: return [4 /*yield*/, this.wallet.connection.
|
|
253
|
+
case 8: return [4 /*yield*/, this.wallet.connection.getRecentBlockhash()];
|
|
254
254
|
case 9:
|
|
255
255
|
blockhashInfo = _d.sent();
|
|
256
256
|
return [4 /*yield*/, this.wallet.connection.getBlockHeight()];
|
|
@@ -282,6 +282,8 @@ var Swap = /** @class */ (function () {
|
|
|
282
282
|
return [3 /*break*/, 14];
|
|
283
283
|
case 13:
|
|
284
284
|
e_1 = _d.sent();
|
|
285
|
+
sdf = e_1;
|
|
286
|
+
debugger;
|
|
285
287
|
this.errorCallback(e_1.message);
|
|
286
288
|
return [3 /*break*/, 14];
|
|
287
289
|
case 14: return [2 /*return*/];
|