Skip to content

Commit

Permalink
Add support for return(0,) style
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Jan 7, 2019
1 parent d7ebe32 commit 7813fdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slither/slithir/operations/return_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7813fdf

Please sign in to comment.