@openocean.finance/openocean-sdk 1.3.2 → 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.
- package/lib/swapSdk/Swap.js +2 -2
- package/package.json +2 -2
package/lib/swapSdk/Swap.js
CHANGED
|
@@ -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
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Openocean sdk",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ethersproject/bignumber": "^5.1.1",
|
|
50
50
|
"@looksrare/sdk": "^0.12.1",
|
|
51
|
-
"@openocean.finance/wallet": "^1.6.
|
|
51
|
+
"@openocean.finance/wallet": "^1.6.3",
|
|
52
52
|
"@uniswap/v2-core": "^1.0.1",
|
|
53
53
|
"@walletconnect/web3-provider": "^1.7.8",
|
|
54
54
|
"aptos": "^1.3.17",
|