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 ERC20 metadata query integration tests #2086
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK but what about tests for deriving the name from the IBC voucher? Do we have those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I had those included originally, but we had to manually store the IBC denom in the transfer keeper and Freddy suggested not to access any keepers in the integration tests, which is why I removed those tests in the integration setup. Those cases are fully covered by unit tests though (and it also worked when I had those included in integration tests), check here: evmos/precompiles/erc20/query_test.go Lines 135 to 182 in 3c22225
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2086 +/- ##
==========================================
+ Coverage 70.06% 70.14% +0.07%
==========================================
Files 339 339
Lines 25499 25499
==========================================
+ Hits 17867 17887 +20
+ Misses 6697 6675 -22
- Partials 935 937 +2 |
Description
This PR adds integration tests for the ERC20 EVM extension metadata queries, which is part of merging #2044 in smaller chunks.