From cb8131e5234c6356a7b454a0018e8972eed161a8 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 9 Aug 2021 15:05:39 +0200 Subject: [PATCH] Improve support manual parsing of calldata --- slither/solc_parsing/expressions/expression_parsing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py index 62adebe7c..0fb32458c 100644 --- a/slither/solc_parsing/expressions/expression_parsing.py +++ b/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(...)