cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
https://cosmos.github.io/cosmjs/
Apache License 2.0
649 stars 335 forks source link

getCodes(): Support more than 100 code IDs #1078

Closed webmaster128 closed 2 years ago

webmaster128 commented 2 years ago

See workaround https://github.com/CosmWasm/code-explorer/blob/5b8b6d6c757abc70b6856897303d9b8860bf90f7/src/pages/codes/Codes.tsx#L34-L45

webmaster128 commented 2 years ago

Let's loop over all pages for now and add a note in the method docs that this is potentially inefficient and advanced apps should consider creating their own query client to handle pagination together with the app's screens.