@interchain-kit/react 0.0.1-beta.51 → 0.0.1-beta.52

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.
@@ -4,6 +4,7 @@ export const useCurrentChainWallet = () => {
4
4
  const walletManager = useWalletManager();
5
5
  const { currentChainName, currentWalletName } = walletManager;
6
6
  const chainWallet = walletManager.getWalletRepositoryByName(currentWalletName)?.getChainAccountByName(currentChainName);
7
+ console.log('chainWallet', currentChainName, currentWalletName, chainWallet);
7
8
  if (chainWallet) {
8
9
  return bindAllMethodsToContext(chainWallet);
9
10
  }
@@ -1,8 +1,8 @@
1
1
  export const getWalletInfo = (wallet) => {
2
2
  return {
3
- name: wallet.info.name,
4
- prettyName: wallet.info.prettyName,
5
- logo: wallet.info.logo,
3
+ name: wallet.info?.name,
4
+ prettyName: wallet.info?.prettyName,
5
+ logo: wallet.info?.logo,
6
6
  mobileDisabled: true,
7
7
  };
8
8
  };
@@ -7,6 +7,7 @@ const useCurrentChainWallet = () => {
7
7
  const walletManager = (0, useWalletManager_1.useWalletManager)();
8
8
  const { currentChainName, currentWalletName } = walletManager;
9
9
  const chainWallet = walletManager.getWalletRepositoryByName(currentWalletName)?.getChainAccountByName(currentChainName);
10
+ console.log('chainWallet', currentChainName, currentWalletName, chainWallet);
10
11
  if (chainWallet) {
11
12
  return (0, helpers_1.bindAllMethodsToContext)(chainWallet);
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interchain-kit/react",
3
- "version": "0.0.1-beta.51",
3
+ "version": "0.0.1-beta.52",
4
4
  "author": "cosmology-tech <developers@cosmology.zone>",
5
5
  "description": "interchain-kit wallet connector react package",
6
6
  "main": "index.js",
@@ -33,7 +33,7 @@
33
33
  "keywords": [],
34
34
  "dependencies": {
35
35
  "@chain-registry/v2-types": "^0.53.40",
36
- "@interchain-kit/core": "0.0.1-beta.51",
36
+ "@interchain-kit/core": "0.0.1-beta.52",
37
37
  "@interchain-ui/react": "1.26.1",
38
38
  "@interchainjs/cosmos": "1.6.3",
39
39
  "@interchainjs/cosmos-types": "1.6.3",
@@ -48,5 +48,5 @@
48
48
  "react": "^18.3.1",
49
49
  "react-dom": "^18.3.1"
50
50
  },
51
- "gitHead": "9e654a387647809d840c118c1f281f3a8fc4c700"
51
+ "gitHead": "b88068536c1230bf52e8288237862416a42adf7c"
52
52
  }
package/utils/wallet.js CHANGED
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getWalletInfo = void 0;
4
4
  const getWalletInfo = (wallet) => {
5
5
  return {
6
- name: wallet.info.name,
7
- prettyName: wallet.info.prettyName,
8
- logo: wallet.info.logo,
6
+ name: wallet.info?.name,
7
+ prettyName: wallet.info?.prettyName,
8
+ logo: wallet.info?.logo,
9
9
  mobileDisabled: true,
10
10
  };
11
11
  };