From db9ded1451ab342fe6ac45485d27ea52c54edb01 Mon Sep 17 00:00:00 2001 From: Zetazzz Date: Tue, 5 Nov 2024 06:10:42 +0800 Subject: [PATCH] hotfix --- libs/interchainjs/src/react-query.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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>(