Skip to content

Commit

Permalink
Initialize both on the same line
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Sep 26, 2024
1 parent 0f38f83 commit 47fb1ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specs/_features/eip7594/polynomial-commitments-sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ def add_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> PolynomialCoe
"""
Sum the coefficient form polynomials ``a`` and ``b``.
"""
length_a = len(a)
length_b = len(b)
length_a, length_b = len(a), len(b)
a, b = (a, b) if length_a >= length_b else (b, a)
return PolynomialCoeff([a[i] + (b[i] if i < length_b else BLSFieldElement(0)) for i in range(length_a)])
```
Expand Down

0 comments on commit 47fb1ee

Please sign in to comment.