diff --git a/slither/core/solidity_types/type_alias.py b/slither/core/solidity_types/type_alias.py index 703d0f4f6d..128d12597a 100644 --- a/slither/core/solidity_types/type_alias.py +++ b/slither/core/solidity_types/type_alias.py @@ -15,6 +15,18 @@ def __init__(self, underlying_type: Type, name: str): 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