diff --git a/.changeset/khaki-roses-march.md b/.changeset/khaki-roses-march.md new file mode 100644 index 00000000..3dd85b45 --- /dev/null +++ b/.changeset/khaki-roses-march.md @@ -0,0 +1,5 @@ +--- +"@abstract-money/cosmwasm-utils": patch +--- + +Throw proper error in rawQury diff --git a/.changeset/witty-hornets-call.md b/.changeset/witty-hornets-call.md new file mode 100644 index 00000000..49eda8b7 --- /dev/null +++ b/.changeset/witty-hornets-call.md @@ -0,0 +1,5 @@ +--- +"@abstract-money/provider-xion": patch +--- + +Don't import from src/types in xion-provider diff --git a/packages/cosmwasm-utils/src/query/rawQuery.ts b/packages/cosmwasm-utils/src/query/rawQuery.ts index 2348c0a7..aed6904f 100644 --- a/packages/cosmwasm-utils/src/query/rawQuery.ts +++ b/packages/cosmwasm-utils/src/query/rawQuery.ts @@ -25,6 +25,7 @@ export const rawQuery = async ({ return res } catch (e) { console.error('Could not parse response', e, fromAscii(response)) + throw e } }) } diff --git a/packages/provider-xion/src/cosmwasm.ts b/packages/provider-xion/src/cosmwasm.ts index e8f66254..74996f1c 100644 --- a/packages/provider-xion/src/cosmwasm.ts +++ b/packages/provider-xion/src/cosmwasm.ts @@ -1,6 +1,6 @@ import { chainNameToId } from '@abstract-money/core' import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate' -import type { UseQueryOptions } from '@tanstack/react-query/src/types' +import type { UseQueryOptions } from '@tanstack/react-query' export function getCosmWasmClientQueryKey(chainName: string) { return ['cosmWasmClient', chainName]