Skip to content

Commit

Permalink
fix: check execMode simulate in conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed May 8, 2024
1 parent b795527 commit 6c55bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ func (k *Keeper) RecvPacket(goCtx context.Context, msg *channeltypes.MsgRecvPack
}

// performance: return early for the redundant relayer ante handler
if ctx.IsCheckTx() || ctx.IsReCheckTx() {
if (ctx.IsCheckTx() || ctx.IsReCheckTx()) && ctx.ExecMode() != sdk.ExecModeSimulate {
return &channeltypes.MsgRecvPacketResponse{Result: channeltypes.SUCCESS}, nil
}

Expand Down

0 comments on commit 6c55bab

Please sign in to comment.