laconicd-deprecated/x/evm/keeper
yihuang b74b37f5f0
fix: traceTransaction returns zero gas used (#1179)
* Problem: traceTransaction returns zero gas used

Solution:
- call CaptureTxStart and CaptureTxEnd

* fix trace unit tests

* add overflow check

* add comment

* check gas used is positive

* Update x/evm/keeper/state_transition.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-07-18 22:16:28 +02:00
..
abci.go evm: refactor statedb implementation (#729) 2022-01-05 08:28:27 +01:00
benchmark_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
grpc_query_test.go fix: traceTransaction returns zero gas used (#1179) 2022-07-18 22:16:28 +02:00
grpc_query.go imp(deps): Geth upgrade v1.10.19 (#1159) 2022-07-08 10:58:04 +00:00
hooks_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
hooks.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
keeper_test.go imp(all): setup a validator in the test genesis (#1171) 2022-07-11 14:42:59 +02:00
keeper.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
migrations.go imp(deps): Geth upgrade v1.10.19 (#1159) 2022-07-08 10:58:04 +00:00
msg_server.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
params_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
params.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
state_transition_benchmark_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
state_transition_test.go evm: cleanup, remove atlas/ (#1152) 2022-06-27 11:58:44 +02:00
state_transition.go fix: traceTransaction returns zero gas used (#1179) 2022-07-18 22:16:28 +02:00
statedb_benchmark_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
statedb_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
statedb.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
utils_test.go all: rename go module to evmos/ethermint (#1137) 2022-06-19 11:43:41 +02:00
utils.go evm: cleanup, remove atlas/ (#1152) 2022-06-27 11:58:44 +02:00