@openocean.finance/openocean-sdk 1.3.3 → 1.3.4

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.
@@ -200,7 +200,7 @@ var Swap = /** @class */ (function () {
200
200
  case 1:
201
201
  _b.trys.push([1, 9, , 10]);
202
202
  transaction = '';
203
- if (res.dexId == 6) {
203
+ if (res.dexId == 6 || res.dexId == 7) {
204
204
  transaction = web3_js_1.VersionedTransaction.deserialize(Buffer.from(res.transaction, 'hex'));
205
205
  }
206
206
  else {
@@ -223,7 +223,7 @@ var Swap = /** @class */ (function () {
223
223
  return [3 /*break*/, 7];
224
224
  case 3:
225
225
  if (!this.wallet.sdk.isSlopeWallet) return [3 /*break*/, 5];
226
- return [4 /*yield*/, this.wallet.sdk.signTransaction(bs58.encode(transaction.serializeMessage()))];
226
+ return [4 /*yield*/, this.wallet.sdk.signTransaction(bs58.encode(transaction.serializeMessage ? transaction.serializeMessage() : transaction.message.serialize()))];
227
227
  case 4:
228
228
  _a = _b.sent(), msg = _a.msg, data = _a.data;
229
229
  if (msg !== "ok")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {