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

imp(erc20): ERC-20 queries #1983

Merged
merged 12 commits into from Nov 3, 2023
Merged

imp(erc20): ERC-20 queries #1983

merged 12 commits into from Nov 3, 2023

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Nov 2, 2023

Description


Implements the queries for the ERC-20 precompile. Tests will follow up in a separate PR to ensure that returned values are the same as the ERC20Metadata.sol contract.

@fedekunze fedekunze marked this pull request as ready for review November 2, 2023 11:42
@fedekunze fedekunze requested a review from a team as a code owner November 2, 2023 11:42
@fedekunze fedekunze requested review from facs95 and MalteHerrmann and removed request for a team November 2, 2023 11:42
precompiles/erc20/query.go Fixed Show fixed Hide fixed
precompiles/erc20/query.go Show resolved Hide resolved
precompiles/erc20/query.go Show resolved Hide resolved
Copy link
Contributor

@MalteHerrmann MalteHerrmann left a comment

Choose a reason for hiding this comment

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

LGTM!

precompiles/erc20/query.go Outdated Show resolved Hide resolved
precompiles/erc20/query.go Outdated Show resolved Hide resolved
fedekunze and others added 2 commits November 2, 2023 17:59
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
@fedekunze fedekunze enabled auto-merge (squash) November 2, 2023 17:00
Copy link
Contributor

@GAtom22 GAtom22 left a comment

Choose a reason for hiding this comment

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

LGTM! Great work @fedekunze!

Left one nit

Also there's a failing test in github.com/evmos/evmos/v15/precompiles/p256

precompiles/erc20/query.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #1983 (73131d2) into main (d726ae0) will increase coverage by 0.25%.
The diff coverage is n/a.

❗ Current head 73131d2 differs from pull request most recent head d0985eb. Consider uploading reports for the commit d0985eb to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1983      +/-   ##
==========================================
+ Coverage   69.72%   69.97%   +0.25%     
==========================================
  Files         331      327       -4     
  Lines       24537    24270     -267     
==========================================
- Hits        17108    16984     -124     
+ Misses       6545     6415     -130     
+ Partials      884      871      -13     

see 10 files with indirect coverage changes

@fedekunze fedekunze merged commit e55017d into main Nov 3, 2023
26 checks passed
@fedekunze fedekunze deleted the fedekunze/erc20-query branch November 3, 2023 10:09
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

4 participants