Skip to content

Commit

Permalink
rename receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega authored Jul 28, 2022
1 parent 4cbb4b9 commit d082056
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/core/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewRedundantRelayDecorator(k *keeper.Keeper) RedundantRelayDecorator {
// contains some other message type, then the antedecorator returns no error and continues processing to ensure these transactions
// are included. This will ensure that relayers do not waste fees on multiMsg transactions when another relayer has already submitted
// all packets, by rejecting the tx at the mempool layer.
func (rd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
func (rrd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
// do not run redundancy check on DeliverTx or simulate
if (ctx.IsCheckTx() || ctx.IsReCheckTx()) && !simulate {
// keep track of total packet messages and number of redundancies across `RecvPacket`, `AcknowledgePacket`, and `TimeoutPacket/OnClose`
Expand All @@ -30,7 +30,7 @@ func (rd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
for _, m := range tx.GetMsgs() {
switch msg := m.(type) {
case *channeltypes.MsgRecvPacket:
response, err := rd.k.RecvPacket(sdk.WrapSDKContext(ctx), msg)
response, err := rrd.k.RecvPacket(sdk.WrapSDKContext(ctx), msg)
if err != nil {
return ctx, err
}
Expand All @@ -40,7 +40,7 @@ func (rd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
packetMsgs++

case *channeltypes.MsgAcknowledgement:
response, err := rd.k.Acknowledgement(sdk.WrapSDKContext(ctx), msg)
response, err := rrd.k.Acknowledgement(sdk.WrapSDKContext(ctx), msg)
if err != nil {
return ctx, err
}
Expand All @@ -50,7 +50,7 @@ func (rd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
packetMsgs++

case *channeltypes.MsgTimeout:
response, err := rd.k.Timeout(sdk.WrapSDKContext(ctx), msg)
response, err := rrd.k.Timeout(sdk.WrapSDKContext(ctx), msg)
if err != nil {
return ctx, err
}
Expand All @@ -60,7 +60,7 @@ func (rd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
packetMsgs++

case *channeltypes.MsgTimeoutOnClose:
response, err := rd.k.TimeoutOnClose(sdk.WrapSDKContext(ctx), msg)
response, err := rrd.k.TimeoutOnClose(sdk.WrapSDKContext(ctx), msg)
if err != nil {
return ctx, err
}
Expand All @@ -70,7 +70,7 @@ func (rd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
packetMsgs++

case *clienttypes.MsgUpdateClient:
_, err := rd.k.UpdateClient(sdk.WrapSDKContext(ctx), msg)
_, err := rrd.k.UpdateClient(sdk.WrapSDKContext(ctx), msg)
if err != nil {
return ctx, err
}
Expand Down

0 comments on commit d082056

Please sign in to comment.