Merge pull request #562 from crytic/dev-reentrancy-event

Fix missing str conversion on reentrancy event
pull/563/head
Feist Josselin 4 years ago committed by GitHub
commit b840336fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/detectors/reentrancy/reentrancy_events.py

@ -78,7 +78,7 @@ If `d.()` reenters, the `Counter` events will be showed in an incorrect order, w
for (func, calls, send_eth), events in result_sorted: for (func, calls, send_eth), events in result_sorted:
calls = sorted(list(set(calls)), key=lambda x: x[0].node_id) 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) 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 = ['Reentrancy in ', func, ':\n']
info += ['\tExternal calls:\n'] info += ['\tExternal calls:\n']

Loading…
Cancel
Save