Closed seleniumforest closed 10 months ago
Nice find, thank you. What about
await client.searchTx(`tx.height='9525321'`);
? This is what the array version is converted to internally.
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
https://stargaze-rpc.polkachu.com/tx_search?query=%22tx.height=9525321%22
That query with '' doesn't work, seems like server parses it as string, but expects int
https://stargaze-rpc.polkachu.com/tx_search?query=%22tx.height=%279525321%27%22
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"