fix gas limit panic

This commit is contained in:
roysc committed 2022-05-13 00:38:19 +08:00
1 parent 75763bf1c4
commit 8beea8811d
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ func setGasMeter(ctx sdk.Context, gasLimit uint64, simulate bool) sdk.Context {
return ctx.WithGasMeter(sdk.NewInfiniteGasMeter())
}
return ctx.WithGasMeter(sdk.NewGasMeter(gasLimit))
return ctx.WithGasMeter(ethermint.NewInfiniteGasMeterWithLimit(gasLimit))
}
// CheckTx implements tx.Handler