@getpara/cosmos-wallet-connectors 3.24.0 → 3.26.0
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.
|
@@ -489,7 +489,7 @@ function CosmosExternalWalletProvider({
|
|
|
489
489
|
}), [chains, connectAsync, multiChain, para, selectedChainId]);
|
|
490
490
|
const requestInfo = useCallback(
|
|
491
491
|
(providerId) => __async(null, null, function* () {
|
|
492
|
-
var _a2;
|
|
492
|
+
var _a2, _b2;
|
|
493
493
|
const wallet = wallets.find((w) => w.id === providerId);
|
|
494
494
|
if (!wallet) {
|
|
495
495
|
throw new Error(`Wallet for provider ${providerId} not found`);
|
|
@@ -498,12 +498,12 @@ function CosmosExternalWalletProvider({
|
|
|
498
498
|
try {
|
|
499
499
|
const externalWallet = yield connectBase(
|
|
500
500
|
wallet.grazType,
|
|
501
|
-
multiChain ? chains
|
|
501
|
+
multiChain ? (_a2 = chains[0]) == null ? void 0 : _a2.chainId : selectedChainId
|
|
502
502
|
);
|
|
503
503
|
return externalWallet;
|
|
504
504
|
} catch (e) {
|
|
505
505
|
console.error("Error linking account:", e);
|
|
506
|
-
throw new Error((
|
|
506
|
+
throw new Error((_b2 = e == null ? void 0 : e.message) != null ? _b2 : e);
|
|
507
507
|
}
|
|
508
508
|
}),
|
|
509
509
|
[chains, connectBase, multiChain, selectedChainId, wallets]
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/cosmos-wallet-connectors",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.26.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/graz-connector": "3.
|
|
6
|
-
"@getpara/react-common": "3.
|
|
7
|
-
"@getpara/web-sdk": "3.
|
|
5
|
+
"@getpara/graz-connector": "3.26.0",
|
|
6
|
+
"@getpara/react-common": "3.26.0",
|
|
7
|
+
"@getpara/web-sdk": "3.26.0",
|
|
8
8
|
"zustand": "^4.5.2",
|
|
9
9
|
"zustand-sync-tabs": "^0.2.2"
|
|
10
10
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist",
|
|
31
31
|
"package.json"
|
|
32
32
|
],
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "3da03ae598e47dddcad44773264bcba424537e9d",
|
|
34
34
|
"main": "dist/index.js",
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@cosmjs/amino": ">=0.32.4",
|