Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: bump ethermint to v0.16.1 #663

Merged
merged 6 commits into from
Jun 9, 2022
Merged

deps: bump ethermint to v0.16.1 #663

merged 6 commits into from
Jun 9, 2022

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Jun 9, 2022

@fedekunze fedekunze marked this pull request as ready for review June 9, 2022 12:29
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #663 (30002f7) into main (0b61e7e) will decrease coverage by 0.02%.
The diff coverage is 62.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #663      +/-   ##
==========================================
- Coverage   82.45%   82.43%   -0.03%     
==========================================
  Files         121      121              
  Lines        6805     6813       +8     
==========================================
+ Hits         5611     5616       +5     
- Misses       1061     1063       +2     
- Partials      133      134       +1     
Impacted Files Coverage Δ
x/incentives/keeper/evm_hooks.go 87.75% <62.50%> (-4.93%) ⬇️

@linear
Copy link

linear bot commented Jun 9, 2022

ENG-439 Contracts should not create incentives gas meters

We removed the code that checks if an account that interacts with an incentivized contract is a EOA or a contract here, because it recognized EOAs as contracts.

To test, I signed transactions from my EOA account using remix to interact with an incentivized contract. I noticed that the From account has a non-nil codehash and therefore is recognized as a contract.

Screenshot 2022-06-08 at 09.45.32.png

A fix for this should include (integration) tests that cover both cases interaction with the contract

  • from a contract account
  • from an EOA

@fedekunze fedekunze enabled auto-merge (squash) June 9, 2022 13:25
@fedekunze fedekunze merged commit 8f99cc4 into main Jun 9, 2022
Copy link
Contributor

@danburck danburck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 I also tested this locally and gas meters are created successfully when interacting with an incentized contract.

@fedekunze fedekunze deleted the bump-ethermint-0161 branch June 9, 2022 13:38
danburck pushed a commit that referenced this pull request Jun 10, 2022
* deps: bump ethermint to v0.16.1

* changelog

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants