Skip to content

Commit

Permalink
Merge pull request #628 from eco-stake/update-rest-block-url
Browse files Browse the repository at this point in the history
Update REST blocks endpoint
  • Loading branch information
tombeynon authored Oct 5, 2022
2 parents 766ae09 + d527c00 commit 54b1a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/QueryClient.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const QueryClient = async (chainId, restUrls, opts) => {
urls = [urls]
}
}
const path = type === "rest" ? "/blocks/latest" : "/block";
const path = type === "rest" ? "/cosmos/base/tendermint/v1beta1/blocks/latest" : "/block";
const { timeout } = opts || {}
return Promise.any(urls.map(async (url) => {
url = url.replace(/\/$/, '')
Expand Down

0 comments on commit 54b1a85

Please sign in to comment.