From 7b06ce8df7afbe78e3934aac8070c7f9a745623a Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Mon, 20 Feb 2023 23:48:23 +0700 Subject: [PATCH] update: fix unequal update height follow in chains - anti zero "0" height club Signed-off-by: Salman Wahib --- src/views/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 7df1304c..46c7ea6f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -175,7 +175,7 @@ export default { if (chain.api) { const index = localStorage.getItem(`${chain.chain_name}-api-index`) || 0 const host = Array.isArray(chain.api) ? chain.api[index] : chain.api - fetch(`${host}/blocks/latest`).then(res => res.json()).then(b => { + fetch(`${host}/cosmos/base/tendermint/v1beta1/blocks/latest`).then(res => res.json()).then(b => { const { header } = b.block this.$set(chain, 'height', header.height) this.$set(chain, 'time', toDay(header.time))