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

[Flow EVM] code and doc clean up #6252

Merged
merged 22 commits into from
Aug 2, 2024

Conversation

ramtinms
Copy link
Contributor

@ramtinms ramtinms commented Jul 24, 2024

This PR cleans up and improves documentation for flow EVM. It doesn't include any major change, mostly fixing typos and removing code duplicates

Comment on lines +401 to +407
// check balance is not prone to rounding error
if types.BalanceConversionToUFix64ProneToRoundingError(call.Value) {
return types.NewInvalidResult(
call.Transaction(),
types.ErrWithdrawBalanceRounding), nil
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This logic was moved from the handler level to here.

@ramtinms ramtinms marked this pull request as ready for review July 24, 2024 05:12
@ramtinms ramtinms requested review from turbolent and sideninja July 24, 2024 05:12
@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 83.12500% with 27 lines in your changes missing coverage. Please review.

Project coverage is 41.47%. Comparing base (e66fe24) to head (0324a9f).

Files Patch % Lines
fvm/evm/handler/handler.go 83.63% 9 Missing and 9 partials ⚠️
fvm/evm/emulator/state/stateDB.go 74.28% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6252      +/-   ##
==========================================
+ Coverage   41.44%   41.47%   +0.02%     
==========================================
  Files        2009     2009              
  Lines      142990   142998       +8     
==========================================
+ Hits        59268    59302      +34     
+ Misses      77540    77522      -18     
+ Partials     6182     6174       -8     
Flag Coverage Δ
unittests 41.47% <83.12%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ramtinms added 2 commits July 23, 2024 23:18
…ithub.com:onflow/flow-go into ramtin/evm-code-cleanup-and-doc-improvement-part2
@ramtinms ramtinms added this pull request to the merge queue Aug 2, 2024
Merged via the queue into master with commit 8c89495 Aug 2, 2024
55 checks passed
@ramtinms ramtinms deleted the ramtin/evm-code-cleanup-and-doc-improvement-part2 branch August 2, 2024 17:48
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.

4 participants