Skip to content

Commit

Permalink
Update x/ccv/types/wire.go
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Noetzlin <[email protected]>
  • Loading branch information
mpoke and sainoe authored Nov 30, 2023
1 parent 5488484 commit d3424fc
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.VerifyAddressFormat(vdt.Validator.Address); err != nil {
if err := sdk.ConsAddressFromBech32(vdt.Validator.Address.String()); err != nil {

Check failure on line 92 in x/ccv/types/wire.go

View workflow job for this annotation

GitHub Actions / lint

assignment mismatch: 1 variable but sdk.ConsAddressFromBech32 returns 2 values

Check failure on line 92 in x/ccv/types/wire.go

View workflow job for this annotation

GitHub Actions / lint

vdt.Validator.Address.String undefined (type []byte has no field or method String) (typecheck)

Check failure on line 92 in x/ccv/types/wire.go

View workflow job for this annotation

GitHub Actions / lint

assignment mismatch: 1 variable but sdk.ConsAddressFromBech32 returns 2 values

Check failure on line 92 in x/ccv/types/wire.go

View workflow job for this annotation

GitHub Actions / lint

vdt.Validator.Address.String undefined (type []byte has no field or method String)) (typecheck)
return errorsmod.Wrap(ErrInvalidPacketData, fmt.Sprintf("invalid validator: %s", err.Error()))
}
// vdt.Validator.Power must be positive
Expand Down

0 comments on commit d3424fc

Please sign in to comment.