Skip to content

Commit

Permalink
Allow zero cliff (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-quality-dev authored Jul 11, 2024
1 parent 15a333f commit 0015c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/vesting/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (msg *MsgCreateMonthlyVestingAccount) ValidateBasic() error {
return errorsmod.Wrapf(errortypes.ErrInvalidAddress, "to address cannot be the zero address")
}

if msg.CliffDays <= 0 {
return errorsmod.Wrapf(ErrInvalidParam, "cliff days cannot be zero or negative")
if msg.CliffDays < 0 {
return errorsmod.Wrapf(ErrInvalidParam, "cliff days cannot be negative")
}

if msg.Months < 1 {
Expand Down

0 comments on commit 0015c9c

Please sign in to comment.