Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

fix: traceTransaction returns zero gas used #1179

Merged
merged 6 commits into from
Jul 18, 2022
Merged

Conversation

yihuang
Copy link
Contributor

@yihuang yihuang commented Jul 13, 2022

Description

Solution:

  • call CaptureTxStart and CaptureTxEnd

For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Solution:
- call CaptureTxStart and CaptureTxEnd
@yihuang yihuang changed the title Problem: traceTransaction returns zero gas used fix: traceTransaction returns zero gas used Jul 14, 2022
@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #1179 (7a044e8) into main (da8fcc3) will increase coverage by 0.04%.
The diff coverage is 76.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1179      +/-   ##
==========================================
+ Coverage   62.06%   62.11%   +0.04%     
==========================================
  Files          91       91              
  Lines        7355     7364       +9     
==========================================
+ Hits         4565     4574       +9     
  Misses       2562     2562              
  Partials      228      228              
Impacted Files Coverage Δ
x/evm/keeper/state_transition.go 75.43% <76.47%> (+0.66%) ⬆️

x/evm/keeper/state_transition.go Show resolved Hide resolved
x/evm/keeper/state_transition.go Show resolved Hide resolved
x/evm/keeper/state_transition.go Show resolved Hide resolved
@yihuang yihuang requested a review from fedekunze July 18, 2022 03:32
x/evm/keeper/state_transition.go Outdated Show resolved Hide resolved
@fedekunze fedekunze enabled auto-merge (squash) July 18, 2022 15:11
@fedekunze fedekunze disabled auto-merge July 18, 2022 20:16
@fedekunze fedekunze merged commit b74b37f into evmos:main Jul 18, 2022
@yihuang yihuang deleted the fix-trace-tx branch July 19, 2022 01:15
@fedekunze
Copy link
Contributor

fedekunze commented Jul 25, 2022

@Mergifyio backport release/v0.17.x

@mergify
Copy link
Contributor

mergify bot commented Jul 25, 2022

backport release/0.17.x

❌ No backport have been created

  • Backport to branch release/0.17.x failed: Branch not found

mergify bot pushed a commit that referenced this pull request Jul 25, 2022
* 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 <[email protected]>
(cherry picked from commit b74b37f)

# Conflicts:
#	x/evm/keeper/grpc_query_test.go
@mergify
Copy link
Contributor

mergify bot commented Jul 25, 2022

backport release/v0.17.x

✅ Backports have been created

@fedekunze
Copy link
Contributor

https://github.com/Mergifyio backport release/v0.17.x

@mergify
Copy link
Contributor

mergify bot commented Jul 25, 2022

backport release/v0.17.x

✅ Backports have been created

yihuang added a commit to yihuang/ethermint that referenced this pull request Jul 26, 2022
* 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 <[email protected]>
hoanguyenkh pushed a commit to AstraProtocol/ethermint that referenced this pull request Jul 27, 2022
* 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 <[email protected]>
facs95 pushed a commit that referenced this pull request Aug 12, 2022
* 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 <[email protected]>
hoanguyenkh pushed a commit to AstraProtocol/ethermint that referenced this pull request Aug 17, 2022
* 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 <[email protected]>
devon-chain pushed a commit to PundiAI/ethermint that referenced this pull request Nov 17, 2022
* 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 <[email protected]>
(cherry picked from commit 84afdf0)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants