diff --git a/slither/core/solidity_types/type_alias.py b/slither/core/solidity_types/type_alias.py index 703d0f4f6..128d12597 100644 --- a/slither/core/solidity_types/type_alias.py +++ b/slither/core/solidity_types/type_alias.py @@ -15,6 +15,18 @@ class TypeAlias(Type): self.name = name self.underlying_type = underlying_type + @property + def type(self) -> Type: + """ + Return the underlying type. Alias for underlying_type + + + Returns: + Type: the underlying type + + """ + return self.underlying_type + @property def storage_size(self) -> Tuple[int, bool]: return self.underlying_type.storage_size