-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
py-scale-codec/scalecodec/types.py
Lines 1925 to 1938 in ee3ab0c
| def process(self): | |
| if self.element_count: | |
| if self.runtime_config.get_decoder_class(self.sub_type) is U8: | |
| self.value_object = self.get_next_bytes(self.element_count) | |
| return '0x{}'.format(self.value_object.hex()) | |
| else: | |
| result = [] | |
| for idx in range(self.element_count): | |
| result.append(self.process_type(self.sub_type).value) | |
| else: | |
| result = [] | |
| return result |
All other U8 lengths decode to 0x...
Getting an array out of this is very surprising if not outright incorrect
Metadata
Metadata
Assignees
Labels
No labels