From 47a25c07afdeda3396509e3b9b5ca3ce57060971 Mon Sep 17 00:00:00 2001 From: georgiypetrov Date: Sun, 13 Oct 2024 20:22:19 +0400 Subject: [PATCH] fix: cmp error suffix --- x/symStaking/keeper/symbiotic_state_change.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/symStaking/keeper/symbiotic_state_change.go b/x/symStaking/keeper/symbiotic_state_change.go index cddd2c6c7..99255b704 100644 --- a/x/symStaking/keeper/symbiotic_state_change.go +++ b/x/symStaking/keeper/symbiotic_state_change.go @@ -171,7 +171,7 @@ func (k *Keeper) SymbioticUpdateValidatorsPower(ctx context.Context) error { break } - if strings.Contains(err.Error(), "is not currently canonical") { + if strings.HasSuffix(err.Error(), "is not currently canonical") { k.Logger.Warn("not canonical block hash", "hash", cachedBlockHash.BlockHash) break }