diff --git a/x/auth/vesting/msg_server.go b/x/auth/vesting/msg_server.go index ff9b6b4fcd33..6e82d8c17a4d 100644 --- a/x/auth/vesting/msg_server.go +++ b/x/auth/vesting/msg_server.go @@ -128,15 +128,13 @@ func (s msgServer) CreateClawbackVestingAccount(goCtx context.Context, msg *type lockupCoins = lockupCoins.Add(period.Amount...) } - if ctx.IsCheckTx() { - if err := lockupCoins.Validate(); err != nil { - return nil, sdkerrors.Wrapf( - sdkerrors.ErrInvalidCoins, "lockup coins %s are invalid: %v", lockupCoins, err) - } - if err := vestingCoins.Validate(); err != nil { - return nil, sdkerrors.Wrapf( - sdkerrors.ErrInvalidCoins, "vesting coins %s are invalid: %v", vestingCoins, err) - } + if err := lockupCoins.Validate(); err != nil { + return nil, sdkerrors.Wrapf( + sdkerrors.ErrInvalidCoins, "lockup coins %s are invalid: %v", lockupCoins, err) + } + if err := vestingCoins.Validate(); err != nil { + return nil, sdkerrors.Wrapf( + sdkerrors.ErrInvalidCoins, "vesting coins %s are invalid: %v", vestingCoins, err) } // if lockup absent, default to an instant unlock schedule