Skip to content

Commit

Permalink
Update x/auth/legacy/v0_39/types.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bezobchuk <[email protected]>
  • Loading branch information
Alessio Treglia and alexanderbez authored Aug 5, 2020
1 parent 65ec8e6 commit 8084428
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/auth/legacy/v0_39/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ func (bva BaseVestingAccount) GetEndTime() int64 {
}

func (bva BaseVestingAccount) Validate() error {
if (bva.Coins.IsZero() && !bva.OriginalVesting.IsZero()) ||
bva.OriginalVesting.IsAnyGT(bva.Coins) {
return errors.New("vesting amount cannot be greater than total amount")
}

return bva.BaseAccount.Validate()
}
Expand Down

0 comments on commit 8084428

Please sign in to comment.