@openocean.finance/wallet 1.10.11 → 1.10.13
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.
|
@@ -224,11 +224,13 @@ function link(reqConnectWalletVo, chain) {
|
|
|
224
224
|
}
|
|
225
225
|
function linkAddOrSwitch(wallet, chain) {
|
|
226
226
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
var _a, currentProvider, utilsEht, chainId, rpcUrls, blockExplorerUrl, nativeCurrency, chainName, params, address, address, switchError_1, address, address, error_1, message;
|
|
227
|
+
var _a, currentProvider, utilsEht, sddf, chainId, rpcUrls, blockExplorerUrl, nativeCurrency, chainName, params, address, address, switchError_1, address, address, error_1, message;
|
|
228
228
|
return __generator(this, function (_b) {
|
|
229
229
|
switch (_b.label) {
|
|
230
230
|
case 0:
|
|
231
231
|
_a = wallet.sdk || {}, currentProvider = _a.currentProvider, utilsEht = _a.utils;
|
|
232
|
+
sddf = wallet.sdk;
|
|
233
|
+
debugger;
|
|
232
234
|
chainId = chain.chainId + '';
|
|
233
235
|
if (!chain) return [3 /*break*/, 23];
|
|
234
236
|
rpcUrls = chain.rpcUrls, blockExplorerUrl = chain.blockExplorerUrl, nativeCurrency = chain.nativeCurrency, chainName = chain.chainName;
|
|
@@ -240,10 +240,9 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
240
240
|
modalChainId_1 = this.modal.getChainId();
|
|
241
241
|
console.log('requestConnect-------chainId----------');
|
|
242
242
|
console.log(modalChainId_1, currentChainId_2, chainId);
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
_c.label = 7;
|
|
243
|
+
this.disconnected = false;
|
|
244
|
+
// if (currentChainId != modalChainId || currentChainId != chainId) {
|
|
245
|
+
throw new Error(types_1.EnumErrors.ChainIdNotMath);
|
|
247
246
|
case 7:
|
|
248
247
|
console.log('requestConnect--------666666666666');
|
|
249
248
|
return [4 /*yield*/, this.sdk.eth.getAccounts()];
|
|
@@ -299,10 +298,8 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
299
298
|
modalChainId = this.modal.getChainId();
|
|
300
299
|
console.log('requestConnect999999-------chainId----------');
|
|
301
300
|
console.log(modalChainId, currentChainId_3, chainId);
|
|
302
|
-
if (
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
_c.label = 17;
|
|
301
|
+
// if (currentChainId != modalChainId || currentChainId != chainId) {
|
|
302
|
+
throw new Error(types_1.EnumErrors.ChainIdNotMath);
|
|
306
303
|
case 17:
|
|
307
304
|
console.log('autoWalletCheck------------666666666666');
|
|
308
305
|
return [4 /*yield*/, this.sdk.eth.getAccounts()];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openocean.finance/wallet",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.13",
|
|
4
4
|
"description": "A multi-chain wallets manager",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@onflow/fcl": "^0.0.71",
|
|
57
57
|
"@ont-dev/ontology-dapi": "^0.5.7",
|
|
58
58
|
"@project-serum/sol-wallet-adapter": "0.2.0",
|
|
59
|
-
"@reown/appkit": "1.3
|
|
60
|
-
"@reown/appkit-adapter-wagmi": "1.3
|
|
59
|
+
"@reown/appkit": "^1.5.3",
|
|
60
|
+
"@reown/appkit-adapter-wagmi": "^1.5.3",
|
|
61
61
|
"@siddomains/sidjs": "^0.1.22",
|
|
62
62
|
"@solana/web3.js": "^1.91.0",
|
|
63
63
|
"@terra-money/terra.js": "3.1.10",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"starknet": "^4.22.0",
|
|
73
73
|
"viem": "2.21.44",
|
|
74
74
|
"wagmi": "2.12.30",
|
|
75
|
-
"web3": "^1.
|
|
75
|
+
"web3": "^1.10.4",
|
|
76
76
|
"web3-ledgerhq-frame-connector": "^1.1.0"
|
|
77
77
|
},
|
|
78
78
|
"eslintConfig": {
|