From 2cb498513e8d23b4f5a5445fae40d7b1426281e4 Mon Sep 17 00:00:00 2001 From: Feist Josselin Date: Tue, 10 Jan 2023 13:41:23 +0100 Subject: [PATCH] Add type to type_alias --- slither/core/solidity_types/type_alias.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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