Skip to content

Commit df647f2

Browse files
sky-coderaypacrob
authored andcommitted
Update batching.py
1 parent c5337e6 commit df647f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web3/_utils/abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def find_constructor_abi_element_by_type(contract_abi: ABI) -> ABIConstructor:
448448
BYTES_SIZES = range(1, 33)
449449
UINT_TYPES = [f"uint{i}" for i in INT_SIZES]
450450
INT_TYPES = [f"int{i}" for i in INT_SIZES]
451-
BYTES_TYPES = [f"bytes{i}" for i in BYTES_SIZES] + ["bytes32"]
451+
BYTES_TYPES = [f"bytes{i}" for i in BYTES_SIZES] + ["bytes32.byte"]
452452

453453
STATIC_TYPES = list(
454454
itertools.chain(

web3/_utils/batching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def sort_batch_response_by_response_ids(
201201
responses: List["RPCResponse"],
202202
) -> List["RPCResponse"]:
203203
if all(response.get("id") is not None for response in responses):
204-
# If all responses have an `id`, sort them by `id, since the JSON-RPC 2.0 spec
204+
# If all responses have an `id`, sort them by `id`, since the JSON-RPC 2.0 spec
205205
# doesn't guarantee order.
206206
return sorted(responses, key=lambda response: response["id"])
207207
else:

0 commit comments

Comments
 (0)