@getpara/cosmos-wallet-connectors 3.23.0 → 3.25.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.map((c) => c.chainId) : selectedChainId
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((_a2 = e == null ? void 0 : e.message) != null ? _a2 : e);
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.23.0",
3
+ "version": "3.25.0",
4
4
  "dependencies": {
5
- "@getpara/graz-connector": "3.23.0",
6
- "@getpara/react-common": "3.23.0",
7
- "@getpara/web-sdk": "3.23.0",
5
+ "@getpara/graz-connector": "3.25.0",
6
+ "@getpara/react-common": "3.25.0",
7
+ "@getpara/web-sdk": "3.25.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": "37cd5748560ed99b161d6b9e3c061173ca9c8bb3",
33
+ "gitHead": "757f086d7e0ff8adcc488ad0fc0801ec56366ee2",
34
34
  "main": "dist/index.js",
35
35
  "peerDependencies": {
36
36
  "@cosmjs/amino": ">=0.32.4",