Merge pull request #1576 from crytic/dev-improve-type-alias

Add type to type_alias
pull/1583/head
Feist Josselin 2 years ago committed by GitHub
commit ac4742ff8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      slither/core/solidity_types/type_alias.py

@ -15,6 +15,18 @@ class TypeAlias(Type):
self.name = name self.name = name
self.underlying_type = underlying_type 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 @property
def storage_size(self) -> Tuple[int, bool]: def storage_size(self) -> Tuple[int, bool]:
return self.underlying_type.storage_size return self.underlying_type.storage_size

Loading…
Cancel
Save