@openocean.finance/openocean-sdk 1.3.1 → 1.3.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.
@@ -191,7 +191,7 @@ var Swap = /** @class */ (function () {
191
191
  };
192
192
  Swap.prototype.sendSolanaTransaction = function () {
193
193
  return __awaiter(this, void 0, void 0, function () {
194
- var res, transaction, swapTransactionBuf, signed, signature, result, bytes, _a, msg, data, bytes, e_1;
194
+ var res, transaction, signed, signature, result, bytes, _a, msg, data, bytes, e_1;
195
195
  return __generator(this, function (_b) {
196
196
  switch (_b.label) {
197
197
  case 0:
@@ -201,8 +201,7 @@ var Swap = /** @class */ (function () {
201
201
  _b.trys.push([1, 9, , 10]);
202
202
  transaction = '';
203
203
  if (res.dexId == 6) {
204
- swapTransactionBuf = Buffer.from(res.transaction, 'base64');
205
- transaction = web3_js_1.VersionedTransaction.deserialize(swapTransactionBuf);
204
+ transaction = web3_js_1.VersionedTransaction.deserialize(Buffer.from(res.transaction, 'hex'));
206
205
  }
207
206
  else {
208
207
  transaction = web3_js_1.Transaction.from(Buffer.from(res.transaction, "hex"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {