File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export type UseChainReturnType = {
2121 chain : Chain ,
2222 assetList : AssetList ,
2323 address : string ,
24- wallet : ChainWalletStore ,
24+ wallet : ChainWalletStore | undefined ,
2525 rpcEndpoint : string | HttpEndpoint | unknown
2626 getSigningClient : ( ) => Promise < SigningClient >
2727
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { createProxiedWallet } from '../proxied-wallets';
88import { InterchainStore } from '../store' ;
99import { ChainWalletState , InterchainStoreType } from '../types' ;
1010import { LocalStorage } from '../utils/local-storage' ;
11+ import type { ChainWalletStore } from './chain-wallet-store' ;
1112import { WalletStore } from './wallet-store' ;
1213export class WalletManagerStore implements WalletManager {
1314
@@ -179,7 +180,7 @@ export class WalletManagerStore implements WalletManager {
179180 this . store . updateChainWalletState ( walletName , chainName , data ) ;
180181 }
181182
182- getChainWalletByName ( walletName : string , chainName : Chain [ 'chainName' ] ) {
183+ getChainWalletByName ( walletName : string , chainName : Chain [ 'chainName' ] ) : ChainWalletStore | undefined {
183184 const walletStore = this . wallets . find ( w => w . info . name === walletName ) ;
184185 return walletStore ?. getChainWalletStore ( chainName ) ;
185186 }
You can’t perform that action at this time.
0 commit comments