Skip to content

Commit db9f3c3

Browse files
authored
chore(types): refactor and remove misleading comment in Requests
1 parent 92511c7 commit db9f3c3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/ethereum_test_types/types.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,5 @@ def __init__(
11601160

11611161
def __bytes__(self) -> bytes:
11621162
"""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()
1163+
s: bytes = b"".join(r.sha256() for r in self.requests_list)
11671164
return Bytes(s).sha256()

0 commit comments

Comments
 (0)