Skip to content

Commit

Permalink
fix: cmp error suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Oct 13, 2024
1 parent 4006a5c commit 47a25c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/symStaking/keeper/symbiotic_state_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 47a25c0

Please sign in to comment.