From 4ed89172cceef430397af2db5b19d011e7829dac Mon Sep 17 00:00:00 2001 From: bruce-riley <96066700+bruce-riley@users.noreply.github.com> Date: Thu, 20 Apr 2023 16:28:51 -0500 Subject: [PATCH] Node: Block height is always zero on Terra2 (#2762) * Node: Block height is always zero on Terra2 Change-Id: Ie504139fa3cd9fcce78dd53ca9a0cfc797f3bf30 * Remove test logging Change-Id: I273267171f7201818395f17d87592ae75f0ce5c8 --- node/pkg/watchers/cosmwasm/watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/pkg/watchers/cosmwasm/watcher.go b/node/pkg/watchers/cosmwasm/watcher.go index 24678b4db..b4f952b7c 100644 --- a/node/pkg/watchers/cosmwasm/watcher.go +++ b/node/pkg/watchers/cosmwasm/watcher.go @@ -116,8 +116,8 @@ func NewWatcher( // Do not add a leading slash latestBlockURL := "blocks/latest" - // Injective does things slightly differently than terra - if chainID == vaa.ChainIDInjective { + // Terra2 and Injective do things slightly differently than terra classic + if chainID == vaa.ChainIDInjective || chainID == vaa.ChainIDTerra2 { latestBlockURL = "cosmos/base/tendermint/v1beta1/blocks/latest" }