Skip to content

Commit

Permalink
chores(*): api and error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezreal1997 committed Dec 18, 2024
1 parent f8c5e26 commit 3d09bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/x/evmstaking/keeper/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d09bfd

Please sign in to comment.