Skip to content

Commit

Permalink
Fixed missing value_object with Tuple containing 1 element (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz authored Jul 5, 2024
1 parent 3130eef commit f676638
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scalecodec/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ def __init__(self, data=None, type_mapping=None, **kwargs):
def process(self):

if len(self.type_mapping) == 1:
return self.process_type(self.type_mapping[0], metadata=self.metadata).value
obj = self.process_type(self.type_mapping[0], metadata=self.metadata)
self.value_object = obj.value_object
return obj.value

result = ()
self.value_object = ()
Expand Down

0 comments on commit f676638

Please sign in to comment.