diff --git a/slither/slithir/operations/return_operation.py b/slither/slithir/operations/return_operation.py index 21758d4d4a..2ef776b139 100644 --- a/slither/slithir/operations/return_operation.py +++ b/slither/slithir/operations/return_operation.py @@ -18,6 +18,11 @@ def __init__(self, values): else: values = [values] else: + # Remove None + # Prior Solidity 0.5 + # return (0,) + # was valid for returns(uint) + values = [v for v in values if not v is None] self._valid_value(values) super(Return, self).__init__() self._values = values