Skip to content

Commit

Permalink
Merge PR: add check of watch db enabled in handler (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiD authored May 21, 2021
1 parent e512b75 commit 3efe19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/evm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func handleMsgEthereumTx(ctx sdk.Context, k *Keeper, msg types.MsgEthereumTx) (*
}

defer func() {
if !st.Simulate {
if !st.Simulate && k.Watcher.Enabled() {
currentGasMeter := ctx.GasMeter()
pm := k.GenerateCSDBParams()
infCtx := ctx.WithGasMeter(sdk.NewInfiniteGasMeter())
Expand Down

0 comments on commit 3efe19f

Please sign in to comment.