@openocean.finance/openocean-sdk 1.2.82 → 1.2.84

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.
@@ -321,7 +321,7 @@ var Swap = /** @class */ (function () {
321
321
  };
322
322
  Swap.prototype.sendAptosTransaction = function () {
323
323
  return __awaiter(this, void 0, void 0, function () {
324
- var data, transaction, hash, _a, result, hash, rawTransaction, txHash, pendingTransaction, client_1, txn, hash, error_1;
324
+ var data, transaction, hash, _a, result, hash, rawTransaction, hash, pendingTransaction, client_1, txn, hash, error_1;
325
325
  return __generator(this, function (_b) {
326
326
  switch (_b.label) {
327
327
  case 0:
@@ -353,9 +353,9 @@ var Swap = /** @class */ (function () {
353
353
  rawTransaction = (_b.sent()).data;
354
354
  return [4 /*yield*/, this.wallet.sdk.aptos.signAndSubmitTransaction(rawTransaction)];
355
355
  case 7:
356
- txHash = (_b.sent()).txHash;
357
- console.log("sendAptosTransaction Fewcha", txHash);
358
- this.transactionHashCallback(txHash);
356
+ hash = (_b.sent()).data;
357
+ console.log("sendAptosTransaction Fewcha", hash);
358
+ this.transactionHashCallback(hash);
359
359
  return [3 /*break*/, 11];
360
360
  case 8: return [4 /*yield*/, this.wallet.sdk.signAndSubmitTransaction(data)];
361
361
  case 9:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {