From d527c0015facc97bec2c14f73791ecb9debfb470 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Wed, 5 Oct 2022 17:37:35 +0100 Subject: [PATCH] Replace deprecated blocks endpoint with new --- src/utils/QueryClient.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/QueryClient.mjs b/src/utils/QueryClient.mjs index f645a0fc..8272fe20 100644 --- a/src/utils/QueryClient.mjs +++ b/src/utils/QueryClient.mjs @@ -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(/\/$/, '')