This commit is contained in:
əlemi 2021-11-12 01:41:02 +01:00
parent 7f3e58b7e6
commit a84b723241

View file

@ -55,11 +55,9 @@ def mctype(slot_type:Any) -> Type:
if isinstance(slot_type, list):
name = slot_type[0]
if name == "buffer":
data = slot_type[1]
if data["countType"] == "varint":
return ByteArray
elif data["countType"] == "integer":
if "countType" in slot_type[1] and slot_type[1]["countType"] == "integer":
return IntegerByteArray
return ByteArray
# TODO composite data types
return TrailingByteArray