@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.
- package/lib/swapSdk/Swap.js +2 -3
- package/package.json +1 -1
package/lib/swapSdk/Swap.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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"));
|