Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion slither/utils/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def _convert_type_for_solidity_signature_to_string(
underlying_type_str = _convert_type_for_solidity_signature_to_string(
underlying_type, seen
)
return underlying_type_str + "[]"

if types.length is None:
return underlying_type_str + "[]"
return underlying_type_str + f"[{types.length_value}]"

return str(types)

Expand Down