We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e4b74 commit eb61e9fCopy full SHA for eb61e9f
src/ethereum_test_forks/forks/helpers.py
@@ -1,20 +1,16 @@
1
-"""
2
-Helpers used to return fork-specific values.
3
+"""Helpers used to return fork-specific values."""
4
5
6
def ceiling_division(a: int, b: int) -> int:
7
"""
8
- Calculates the ceil without using floating point.
9
- Used by many of the EVM's formulas
+ Calculate the ceil without using floating point.
+ Used by many of the EVM's formulas.
10
11
return -(a // -b)
12
13
14
def fake_exponential(factor: int, numerator: int, denominator: int) -> int:
15
- """
16
- Used to calculate the blob gas cost.
17
+ """Calculate the blob gas cost."""
18
i = 1
19
output = 0
20
numerator_accumulator = factor * denominator
0 commit comments