From 7dd74dc887cb60769684770b119fff2c63f95f36 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 3 Aug 2020 09:06:30 +0200 Subject: [PATCH] Fix missing str conversion on reentrancy event --- slither/detectors/reentrancy/reentrancy_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/detectors/reentrancy/reentrancy_events.py b/slither/detectors/reentrancy/reentrancy_events.py index fa95dd979..d1e2c9043 100644 --- a/slither/detectors/reentrancy/reentrancy_events.py +++ b/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: 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']