mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 3c5fb9691b into merged_master (Bitcoin PR bitcoin/bitcoin#26007)
This commit is contained in:
commit
6b70e5124c
1 changed files with 1 additions and 2 deletions
|
|
@ -79,8 +79,7 @@ def to_jsonable(obj: Any) -> Any:
|
|||
val = getattr(obj, slot, None)
|
||||
if slot in HASH_INTS and isinstance(val, int):
|
||||
ret[slot] = ser_uint256(val).hex()
|
||||
elif slot in HASH_INT_VECTORS:
|
||||
assert all(isinstance(a, int) for a in val)
|
||||
elif slot in HASH_INT_VECTORS and all(isinstance(a, int) for a in val):
|
||||
ret[slot] = [ser_uint256(a).hex() for a in val]
|
||||
else:
|
||||
ret[slot] = to_jsonable(val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue