Skip to content

Commit

Permalink
Merge pull request #562 from crytic/dev-reentrancy-event
Browse files Browse the repository at this point in the history
Fix missing str conversion on reentrancy event
  • Loading branch information
montyly committed Aug 3, 2020
2 parents ef38fc4 + 7dd74dc commit b840336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/detectors/reentrancy/reentrancy_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _detect(self):
for (func, calls, send_eth), events in result_sorted:
calls = sorted(list(set(calls)), key=lambda x: x[0].node_id)
send_eth = sorted(list(set(send_eth)), key=lambda x: x[0].node_id)
events = sorted(events, key=lambda x: (x.variable.name, x.node.node_id))
events = sorted(events, key=lambda x: (str(x.variable.name), x.node.node_id))

info = ['Reentrancy in ', func, ':\n']
info += ['\tExternal calls:\n']
Expand Down

0 comments on commit b840336

Please sign in to comment.