-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StargateClient.searchTx doesn't work if you passing KV-array #1462
Comments
Nice find, thank you. What about await client.searchTx(`tx.height='9525321'`); ? This is what the array version is converted to internally. |
Error: Bad status on response: 500 |
There shouldn't be quotes. This is right query That query with '' doesn't work, seems like server parses it as string, but expects int |
Interesting. I was not aware there is a difference between types in that interface. Maybe that changed at some point. I think we can change the array elements as follows: {
readonly key: string;
- readonly value: string;
+ readonly value: string | number | bigint | Uint53 | Uint64;
} and avoid the quotes for the number case. |
It works only if you pass raw string query, but doesn't work with key-value array.
Version "@cosmjs/stargate": "^0.31.0"
The text was updated successfully, but these errors were encountered: