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

Replace gas_available with gas_used in the description of apply_body #872

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

fradamt
Copy link
Contributor

@fradamt fradamt commented Jan 31, 2024

What was wrong?

The first return value in the description of apply_bodyis gas_available instead of gas_used.

How was it fixed?

Replacing gas_available with gas_used.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@@ -533,8 +533,8 @@ def apply_body(

Returns
-------
gas_available : `ethereum.base_types.Uint`
Remaining gas after all transactions have been executed.
gas_used : `ethereum.base_types.Uint`
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe

Suggested change
gas_used : `ethereum.base_types.Uint`
block_gas_used : `ethereum.base_types.Uint`

to match the actual variable name?


If you don't want to change it, I'm fine merging as-is too. We're switching to markdown shortly anyway.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1fed0c0) 74.11% compared to head (f60cfb2) 74.11%.

❗ Current head f60cfb2 differs from pull request most recent head 4fd0eb1. Consider uploading reports for the commit 4fd0eb1 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #872   +/-   ##
=======================================
  Coverage   74.11%   74.11%           
=======================================
  Files         572      572           
  Lines       32411    32411           
=======================================
  Hits        24022    24022           
  Misses       8389     8389           
Flag Coverage Δ
unittests 74.11% <ø> (ø)

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.

@SamWilsn SamWilsn merged commit cd9b7d6 into ethereum:master Feb 1, 2024
5 checks passed
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.

3 participants