diff --git a/libs/interchainjs/src/react-query.ts b/libs/interchainjs/src/react-query.ts index 80e8d9a7..047e7f5a 100644 --- a/libs/interchainjs/src/react-query.ts +++ b/libs/interchainjs/src/react-query.ts @@ -95,7 +95,7 @@ export const useRpcClient = ({ }; export interface UseQueryBuilderOptions { - builderQueryFn: (clientResolver: RpcResolver) => (request: TReq) => Promise, + builderQueryFn: (clientResolver?: RpcResolver) => (request: TReq) => Promise, queryKeyPrefix: string, } @@ -127,10 +127,6 @@ export function buildUseQuery(opts: UseQueryBuilderOptions(customizedQueryKey || [opts.queryKeyPrefix, request], () => queryFn(request), options); }; @@ -149,7 +145,7 @@ export interface ReactMutationParams { - builderMutationFn: (getSigningClientInstance: SigningClientResolver) => ( + builderMutationFn: (clientResolver?: SigningClientResolver) => ( signerAddress: string, message: TMsg, fee: StdFee | 'auto', @@ -179,10 +175,6 @@ export function buildUseMutation(opts: UseMutationBuilderOptions>(