Merge pull request #907 from crytic/dev-calldata-filter-name

Improve support of manual type parsing with calldata
pull/908/head
Feist Josselin 3 years ago committed by GitHub
commit 6370fd6742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      slither/solc_parsing/expressions/expression_parsing.py

@ -415,6 +415,7 @@ def filter_name(value: str) -> str:
value = value.replace(" payable", "")
value = value.replace("function (", "function(")
value = value.replace("returns (", "returns(")
value = value.replace(" calldata", "")
# remove the text remaining after functio(...)
# which should only be ..returns(...)

Loading…
Cancel
Save