From d3424fc03d536f6ac7a6ec31bbfa5606c00a0598 Mon Sep 17 00:00:00 2001 From: Marius Poke Date: Thu, 30 Nov 2023 14:57:52 +0100 Subject: [PATCH] Update x/ccv/types/wire.go Co-authored-by: Simon Noetzlin --- x/ccv/types/wire.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ccv/types/wire.go b/x/ccv/types/wire.go index c7cbe9e126..aa598d5f49 100644 --- a/x/ccv/types/wire.go +++ b/x/ccv/types/wire.go @@ -89,7 +89,7 @@ func NewSlashPacketDataV1(validator abci.Validator, valUpdateId uint64, infracti func (vdt SlashPacketData) Validate() error { // vdt.Validator.Address must be a consensus address - if err := sdk.VerifyAddressFormat(vdt.Validator.Address); err != nil { + if err := sdk.ConsAddressFromBech32(vdt.Validator.Address.String()); err != nil { return errorsmod.Wrap(ErrInvalidPacketData, fmt.Sprintf("invalid validator: %s", err.Error())) } // vdt.Validator.Power must be positive