Skip to content

Commit

Permalink
revert SlashPacketData address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Nov 30, 2023
1 parent d3424fc commit a6609d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/types/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6609d7

Please sign in to comment.