diff --git a/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md b/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md index 16867b3f..1bca087c 100644 --- a/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md +++ b/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md @@ -1,5 +1,13 @@ # wagemos-cosmoskit-nextjs +## 0.3.22 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.9 + - @abstract-money/provider-cosmoskit@5.0.9 + ## 0.3.21 ### Patch Changes diff --git a/examples/wagemos-cosmoskit-nextjs/package.json b/examples/wagemos-cosmoskit-nextjs/package.json index a23d72b5..26c4cae6 100644 --- a/examples/wagemos-cosmoskit-nextjs/package.json +++ b/examples/wagemos-cosmoskit-nextjs/package.json @@ -1,6 +1,6 @@ { "name": "wagemos-cosmoskit-nextjs", - "version": "0.3.21", + "version": "0.3.22", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/wagemos-graz-nextjs/CHANGELOG.md b/examples/wagemos-graz-nextjs/CHANGELOG.md index 97d26d02..bc255306 100644 --- a/examples/wagemos-graz-nextjs/CHANGELOG.md +++ b/examples/wagemos-graz-nextjs/CHANGELOG.md @@ -1,5 +1,13 @@ # wagemos-graz-nextjs +## 0.3.22 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.9 + - @abstract-money/provider-graz@5.0.9 + ## 0.3.21 ### Patch Changes diff --git a/examples/wagemos-graz-nextjs/package.json b/examples/wagemos-graz-nextjs/package.json index c9384c65..60e8bc06 100644 --- a/examples/wagemos-graz-nextjs/package.json +++ b/examples/wagemos-graz-nextjs/package.json @@ -1,6 +1,6 @@ { "name": "wagemos-graz-nextjs", - "version": "0.3.21", + "version": "0.3.22", "private": true, "scripts": { "dev": "NODE_OPTIONS='--inspect' next dev", diff --git a/packages/provider-cosmoskit/CHANGELOG.md b/packages/provider-cosmoskit/CHANGELOG.md index a9e16670..4ba1465b 100644 --- a/packages/provider-cosmoskit/CHANGELOG.md +++ b/packages/provider-cosmoskit/CHANGELOG.md @@ -1,5 +1,12 @@ # @abstract-money/provider-cosmoskit +## 5.0.9 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.9 + ## 5.0.8 ### Patch Changes diff --git a/packages/provider-cosmoskit/package.json b/packages/provider-cosmoskit/package.json index 64f38237..b7deb94c 100644 --- a/packages/provider-cosmoskit/package.json +++ b/packages/provider-cosmoskit/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/provider-cosmoskit", - "version": "5.0.8", + "version": "5.0.9", "description": "Provider for CosmosKit", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/provider-graz/CHANGELOG.md b/packages/provider-graz/CHANGELOG.md index bb08a7f3..68eb6736 100644 --- a/packages/provider-graz/CHANGELOG.md +++ b/packages/provider-graz/CHANGELOG.md @@ -1,5 +1,12 @@ # @abstract-money/provider-graz +## 5.0.9 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.9 + ## 5.0.8 ### Patch Changes diff --git a/packages/provider-graz/package.json b/packages/provider-graz/package.json index 178b7843..256f7027 100644 --- a/packages/provider-graz/package.json +++ b/packages/provider-graz/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/provider-graz", - "version": "5.0.8", + "version": "5.0.9", "description": "Provider for Graz", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index b7f11f61..bff70198 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @abstract-money/react +## 1.3.9 + +### Patch Changes + +- Remove signingcosmwasmclient from account client query key + ## 1.3.8 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index c87eeeb9..c4603144 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/react", - "version": "1.3.8", + "version": "1.3.9", "description": "React Hooks for Abstract SDK", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/react/src/utils/use-abstract-client.ts b/packages/react/src/utils/use-abstract-client.ts index 4cf38a96..aca90cd6 100644 --- a/packages/react/src/utils/use-abstract-client.ts +++ b/packages/react/src/utils/use-abstract-client.ts @@ -43,6 +43,14 @@ export async function getAbstractClient({ ) } +type QueryKey = readonly [ + 'abstract-client', + string | undefined, + string | undefined, + string | undefined, + string, +] + export type UseAbstractClientParameters = { chainName: string | undefined sender?: string | undefined @@ -50,14 +58,7 @@ export type UseAbstractClientParameters = { AbstractClient | undefined, unknown, AbstractClient | undefined, - readonly [ - 'abstract-client', - string | undefined, - string | undefined, - string | undefined, - string, - SigningCosmWasmClient | undefined, - ] + QueryKey > } @@ -79,9 +80,8 @@ export function useAbstractClient(parameters: UseAbstractClientParameters) { } = useSenderAddress({ chainName }) const queryKey = React.useMemo( - () => - ['abstract-client', sender_, sender, chainName, apiUrl, client] as const, - [sender_, sender, chainName, apiUrl, client], + () => ['abstract-client', sender_, sender, chainName, apiUrl] as const, + [sender_, sender, chainName, apiUrl], ) const queryFn = React.useCallback(() => {