Skip to content

Commit

Permalink
Merge pull request #143 from AbstractSDK/adair/rawThrow
Browse files Browse the repository at this point in the history
Throw proper error with rawquery
  • Loading branch information
adairrr authored Nov 13, 2024
2 parents de33964 + c937b82 commit 421e35e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/khaki-roses-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@abstract-money/cosmwasm-utils": patch
---

Throw proper error in rawQury
5 changes: 5 additions & 0 deletions .changeset/witty-hornets-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@abstract-money/provider-xion": patch
---

Don't import from src/types in xion-provider
1 change: 1 addition & 0 deletions packages/cosmwasm-utils/src/query/rawQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const rawQuery = async <TResponse = unknown>({
return res
} catch (e) {
console.error('Could not parse response', e, fromAscii(response))
throw e
}
})
}
2 changes: 1 addition & 1 deletion packages/provider-xion/src/cosmwasm.ts
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 421e35e

Please sign in to comment.