Skip to content

Commit bc0d047

Browse files
committed
Accomodate rust types
1 parent 2e7de77 commit bc0d047

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chia/wallet/util/clvm_streamable.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def json_deserialize_with_clvm_streamable(
120120
bytes.fromhex(json_dict), streamable_type, translation_layer=translation_layer
121121
)
122122
else:
123+
if not hasattr(streamable_type, "streamable_fields"):
124+
# This is a rust streamable and therefore cannot be a clvm_streamable
125+
return streamable_type.from_json_dict(json_dict)
123126
old_streamable_fields = streamable_type.streamable_fields()
124127
new_streamable_fields = []
125128
for old_field in old_streamable_fields:

0 commit comments

Comments
 (0)