We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a55606c commit 42bbbbaCopy full SHA for 42bbbba
contrib/message-capture/message-capture-parser.py
@@ -79,7 +79,8 @@ def to_jsonable(obj: Any) -> Any:
79
val = getattr(obj, slot, None)
80
if slot in HASH_INTS and isinstance(val, int):
81
ret[slot] = ser_uint256(val).hex()
82
- elif slot in HASH_INT_VECTORS and isinstance(val[0], int):
+ elif slot in HASH_INT_VECTORS:
83
+ assert all(isinstance(a, int) for a in val)
84
ret[slot] = [ser_uint256(a).hex() for a in val]
85
else:
86
ret[slot] = to_jsonable(val)
0 commit comments