diff --git a/client/x/evmstaking/keeper/deposit.go b/client/x/evmstaking/keeper/deposit.go index 728a921d..e12074ef 100644 --- a/client/x/evmstaking/keeper/deposit.go +++ b/client/x/evmstaking/keeper/deposit.go @@ -159,7 +159,7 @@ func (k Keeper) ProcessDeposit(ctx context.Context, ev *bindings.IPTokenStakingD depositorAddr.String(), validatorAddr.String(), amountCoin, delID, periodType, ) - if _, err := skeeperMsgServer.Delegate(cachedCtx, msg); errors.Is(err, stypes.ErrDelegationBelowMinimum) { + if _, err = skeeperMsgServer.Delegate(cachedCtx, msg); errors.Is(err, stypes.ErrDelegationBelowMinimum) { return errors.WrapErrWithCode(errors.InvalidDelegationAmount, err) } else if errors.Is(err, stypes.ErrNoPeriodTypeFound) { return errors.WrapErrWithCode(errors.InvalidPeriodType, err)