From f676638998ce612d9f0b38b135f77a95eacd51ce Mon Sep 17 00:00:00 2001 From: Arjan Zijderveld <5286904+arjanz@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:46:34 +0200 Subject: [PATCH] Fixed missing value_object with Tuple containing 1 element (#123) --- scalecodec/types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scalecodec/types.py b/scalecodec/types.py index 0415867..368286b 100644 --- a/scalecodec/types.py +++ b/scalecodec/types.py @@ -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 = ()