From a6609d76284c915c2a57de5d1d00020cf00443ad Mon Sep 17 00:00:00 2001 From: mpoke Date: Thu, 30 Nov 2023 15:00:37 +0100 Subject: [PATCH] revert SlashPacketData address validation --- 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 aa598d5f49..c7cbe9e126 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.ConsAddressFromBech32(vdt.Validator.Address.String()); err != nil { + if err := sdk.VerifyAddressFormat(vdt.Validator.Address); err != nil { return errorsmod.Wrap(ErrInvalidPacketData, fmt.Sprintf("invalid validator: %s", err.Error())) } // vdt.Validator.Power must be positive