Skip to content

Commit

Permalink
Fix dumb mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Sep 26, 2024
1 parent 4cb731a commit 5804b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/_features/eip7594/polynomial-commitments-sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def add_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> PolynomialCoe
"""
Sum the coefficient form polynomials ``a`` and ``b``.
"""
length_a, length_b = len(a), len(b)
a, b = (a, b) if length_a >= length_b else (b, a)
length_a, length_b = len(a), len(b)
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 5804b45

Please sign in to comment.