Skip to content

Commit

Permalink
fix(baseapp): move var definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ziscky committed Oct 31, 2024
1 parent 6305e1d commit 1b6e8c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1032,12 +1032,12 @@ func (app *BaseApp) runMsgs(ctx sdk.Context, msgs []sdk.Msg, reflectMsgs []proto
msgResponses := make([]*codectypes.Any, 0, len(msgs))
// NOTE: GasWanted is determined by the AnteHandler and GasUsed by the GasMeter.
for i, msg := range msgs {
start := telemetry.Now()

if mode != execModeFinalize && mode != execModeSimulate {
break
}

start := telemetry.Now()

handler := app.msgServiceRouter.Handler(msg)
if handler == nil {
return nil, errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "no message handler found for %T", msg)
Expand Down

0 comments on commit 1b6e8c0

Please sign in to comment.