diff --git a/custom/custompfm/keeper/keeper.go b/custom/custompfm/keeper/keeper.go index 58e2ee1d..9496a035 100644 --- a/custom/custompfm/keeper/keeper.go +++ b/custom/custompfm/keeper/keeper.go @@ -51,7 +51,6 @@ func NewIBCMiddleware( IBCMiddleware: router.NewIBCMiddleware(app, k, retriesOnTimeout, forwardTimeout, refundTimeout), ibcfeekeeper: ibcfeekeeper, - //we need this bz this field is not exported in the parent struct app1: app, keeper1: k, retriesOnTimeout1: retriesOnTimeout, @@ -206,7 +205,7 @@ func (im IBCMiddleware) OnRecvPacket( if result.Fee.Amount.LT(token.Amount) { token = token.SubAmount(result.Fee.Amount) } else { - send_err := im.bank.SendCoins(ctx, result.Sender, result.Reciever, sdk.NewCoins(result.Fee)) + send_err := im.bank.SendCoins(ctx, result.Sender, result.Receiver, sdk.NewCoins(result.Fee)) if send_err != nil { logger.Error("packetForwardMiddleware OnRecvPacket error sending fee", "error", send_err) return newErrorAcknowledgement(fmt.Errorf("error charging fee: %w", send_err)) diff --git a/x/ibctransfermiddleware/keeper/keeper.go b/x/ibctransfermiddleware/keeper/keeper.go index bf8b95d0..d43741d6 100644 --- a/x/ibctransfermiddleware/keeper/keeper.go +++ b/x/ibctransfermiddleware/keeper/keeper.go @@ -113,7 +113,7 @@ func (k Keeper) GetChannelFeeAddress(ctx sdk.Context, targetChannelID string) st type BridgeFee struct { Fee sdk.Coin Sender sdk.AccAddress - Reciever sdk.AccAddress + Receiver sdk.AccAddress } func (k Keeper) ChargeFee(ctx sdk.Context, msg *ibctypes.MsgTransfer) (*BridgeFee, error) { @@ -179,7 +179,7 @@ func (k Keeper) ChargeFee(ctx sdk.Context, msg *ibctypes.MsgTransfer) (*BridgeFe // return nil, send_err // } msg.Token.Amount = newAmount - return &BridgeFee{Fee: charge_coin, Sender: msgSender, Reciever: feeAddress}, nil + return &BridgeFee{Fee: charge_coin, Sender: msgSender, Receiver: feeAddress}, nil // if newAmount.LTE(sdk.ZeroInt()) { // zeroTransfer := sdk.NewCoin(msg.Token.Denom, sdk.ZeroInt())