diff --git a/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md b/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md index 76103322..16867b3f 100644 --- a/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md +++ b/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md @@ -1,5 +1,13 @@ # wagemos-cosmoskit-nextjs +## 0.3.21 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.8 + - @abstract-money/provider-cosmoskit@5.0.8 + ## 0.3.20 ### Patch Changes diff --git a/examples/wagemos-cosmoskit-nextjs/package.json b/examples/wagemos-cosmoskit-nextjs/package.json index 5750f1a2..a23d72b5 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.20", + "version": "0.3.21", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/wagemos-graz-nextjs/CHANGELOG.md b/examples/wagemos-graz-nextjs/CHANGELOG.md index 013e243b..97d26d02 100644 --- a/examples/wagemos-graz-nextjs/CHANGELOG.md +++ b/examples/wagemos-graz-nextjs/CHANGELOG.md @@ -1,5 +1,13 @@ # wagemos-graz-nextjs +## 0.3.21 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.8 + - @abstract-money/provider-graz@5.0.8 + ## 0.3.20 ### Patch Changes diff --git a/examples/wagemos-graz-nextjs/package.json b/examples/wagemos-graz-nextjs/package.json index cf5c2964..c9384c65 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.20", + "version": "0.3.21", "private": true, "scripts": { "dev": "NODE_OPTIONS='--inspect' next dev", diff --git a/packages/provider-cosmoskit/CHANGELOG.md b/packages/provider-cosmoskit/CHANGELOG.md index 9a4bd047..a9e16670 100644 --- a/packages/provider-cosmoskit/CHANGELOG.md +++ b/packages/provider-cosmoskit/CHANGELOG.md @@ -1,5 +1,12 @@ # @abstract-money/provider-cosmoskit +## 5.0.8 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.8 + ## 5.0.7 ### Patch Changes diff --git a/packages/provider-cosmoskit/package.json b/packages/provider-cosmoskit/package.json index 9b79871f..64f38237 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.7", + "version": "5.0.8", "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 6bf03d6e..bb08a7f3 100644 --- a/packages/provider-graz/CHANGELOG.md +++ b/packages/provider-graz/CHANGELOG.md @@ -1,5 +1,12 @@ # @abstract-money/provider-graz +## 5.0.8 + +### Patch Changes + +- Updated dependencies []: + - @abstract-money/react@1.3.8 + ## 5.0.7 ### Patch Changes diff --git a/packages/provider-graz/package.json b/packages/provider-graz/package.json index 96ea82b3..178b7843 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.7", + "version": "5.0.8", "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 5518fe83..b7f11f61 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @abstract-money/react +## 1.3.8 + +### Patch Changes + +- Adds debug code to the providers + ## 1.3.7 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 92c719db..c87eeeb9 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/react", - "version": "1.3.7", + "version": "1.3.8", "description": "React Hooks for Abstract SDK", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/react/src/create-config.ts b/packages/react/src/create-config.ts index d6106c67..9cd55faf 100644 --- a/packages/react/src/create-config.ts +++ b/packages/react/src/create-config.ts @@ -58,7 +58,10 @@ export function createConfig(parameters: CreateConfigParameters) { ): PublicClient | undefined { const cosmWasmClient = provider.useCosmWasmClient(...args) return useMemo(() => { - if (!cosmWasmClient) return undefined + if (!cosmWasmClient) { + console.debug('usePublicClient: no cosmWasmClient') + return undefined + } return createPublicClient({ apiUrl, cosmWasmClient, @@ -72,7 +75,13 @@ export function createConfig(parameters: CreateConfigParameters) { const signingCosmWasmClient = provider.useSigningCosmWasmClient(...args) const sender = provider.useSenderAddress(...args) return useMemo(() => { - if (!signingCosmWasmClient || !sender) return undefined + if (!signingCosmWasmClient || !sender) { + console.debug('useWalletClient: no signingCosmWasmClient or sender', { + signingCosmWasmClient, + sender, + }) + return undefined + } return createWalletClient({ apiUrl, sender, @@ -91,7 +100,16 @@ export function createConfig(parameters: CreateConfigParameters) { >): AccountPublicClient | undefined { const cosmWasmClient = provider.useCosmWasmClient(rest) return useMemo(() => { - if (!cosmWasmClient || !accountId) return undefined + if (!cosmWasmClient || !accountId) { + console.debug( + 'useAccountPublicClient: no cosmWasmClient or accountId', + { + cosmWasmClient, + accountId, + }, + ) + return undefined + } return createAccountPublicClient({ apiUrl, cosmWasmClient, @@ -111,7 +129,17 @@ export function createConfig(parameters: CreateConfigParameters) { const signingCosmWasmClient = provider.useSigningCosmWasmClient(rest) const sender = provider.useSenderAddress(rest) return useMemo(() => { - if (!signingCosmWasmClient || !sender || !accountId) return undefined + if (!signingCosmWasmClient || !sender || !accountId) { + console.debug( + 'useAccountWalletClient: no signingCosmWasmClient, sender, or accountId', + { + signingCosmWasmClient, + sender, + accountId, + }, + ) + return undefined + } return createAccountWalletClient({ apiUrl, sender,