We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92511c7 commit db9f3c3Copy full SHA for db9f3c3
src/ethereum_test_types/types.py
@@ -1160,8 +1160,5 @@ def __init__(
1160
1161
def __bytes__(self) -> bytes:
1162
"""Return requests hash."""
1163
- s: bytes = b""
1164
- for r in self.requests_list:
1165
- # Append the index of the request type to the request data before hashing
1166
- s = s + r.sha256()
+ s: bytes = b"".join(r.sha256() for r in self.requests_list)
1167
return Bytes(s).sha256()
0 commit comments