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

tests(erc20): Add tests for ERC20 allowance transactions #2083

Merged
merged 6 commits into from
Nov 28, 2023

Conversation

MalteHerrmann
Copy link
Contributor

Description

This PR adds the integration tests for the ERC20 EVM extension transactions, that handle allowances as part of merging #2044 in smaller chunks.

@MalteHerrmann MalteHerrmann requested a review from a team as a code owner November 27, 2023 16:37
@MalteHerrmann MalteHerrmann requested review from Vvaradinov and GAtom22 and removed request for a team November 27, 2023 16:37
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Merging #2083 (43401a0) into main (97307ca) will increase coverage by 0.00%.
Report is 4 commits behind head on main.
The diff coverage is n/a.

❗ Current head 43401a0 differs from pull request most recent head 540f937. Consider uploading reports for the commit 540f937 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2083   +/-   ##
=======================================
  Coverage   70.14%   70.15%           
=======================================
  Files         339      339           
  Lines       25499    25499           
=======================================
+ Hits        17887    17889    +2     
+ Misses       6675     6673    -2     
  Partials      937      937           

see 1 file with indirect coverage changes

Copy link
Contributor

@Vvaradinov Vvaradinov left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

Thanks @MalteHerrmann let's also check the result (true or false) in the approve calls

precompiles/erc20/integration_test.go Outdated Show resolved Hide resolved
precompiles/erc20/integration_test.go Outdated Show resolved Hide resolved
@MalteHerrmann MalteHerrmann dismissed fedekunze’s stale review November 28, 2023 14:21

Addressed the open points :+1

@fedekunze fedekunze enabled auto-merge (squash) November 28, 2023 14:28
@0xstepit 0xstepit merged commit 3e643e7 into main Nov 28, 2023
26 of 29 checks passed
@0xstepit 0xstepit deleted the malte/add-erc20-allowance-transaction-tests branch November 28, 2023 14:34
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