Skip to content

Commit

Permalink
fix: gravity fee error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kstoykov committed Mar 3, 2022
1 parent bed2c06 commit ddec994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/x/gravity/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ func (k msgServer) SendToEth(c context.Context, msg *types.MsgSendToEth) (*types

mte := k.GetMinimumTransferToEth(ctx)
if msg.Amount.Amount.LT(mte) {
return nil, fmt.Errorf("amount does not meet minimum sending amount requirement: %s", mte)
return nil, sdkerrors.Wrap(types.ErrInvalid, fmt.Sprintf("amount does not meet minimum sending amount requirement: %sacudos", mte))
}

mft := k.GetMinimumFeeTransferToEth(ctx)
if msg.BridgeFee.Amount.LT(mft) {
return nil, fmt.Errorf("fee does not meet minimum fee requirement: %s", mft)
return nil, sdkerrors.Wrap(types.ErrInvalid, fmt.Sprintf("fee does not meet minimum fee requirement: %sacudos", mft))
}

sender, err := sdk.AccAddressFromBech32(msg.Sender)
Expand Down

0 comments on commit ddec994

Please sign in to comment.