Skip to content

Commit

Permalink
fixed is function
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Nov 1, 2024
1 parent c30de43 commit fc77eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/interchainjs/src/helper-func-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export interface ITxArgs<TMsg> {
}

export function isISigningClient(client: unknown): client is ISigningClient {
return typeof (client as ISigningClient).signAndBroadcast === 'function'
return client
&& typeof (client as ISigningClient).signAndBroadcast === 'function'
&& typeof (client as ISigningClient).addConverters === 'function'
&& typeof (client as ISigningClient).addEncoders === 'function';

Expand Down
2 changes: 1 addition & 1 deletion libs/interchainjs/src/react-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface CacheResolver {
}

export function isCacheResolver(resolver: unknown) : resolver is CacheResolver {
return (resolver as CacheResolver).rpcEndpoint !== undefined && (resolver as CacheResolver).clientQueryKey !== undefined;
return resolver && (resolver as CacheResolver).rpcEndpoint !== undefined && (resolver as CacheResolver).clientQueryKey !== undefined;
}

export interface ReactQueryParams<TResponse, TData = TResponse> {
Expand Down

0 comments on commit fc77eee

Please sign in to comment.