Skip to content

Commit 9c16880

Browse files
committed
fix: improper marking as failed
1 parent e7b0ef0 commit 9c16880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evm_trace/parity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_calltree_from_parity_trace(
116116
:class:`~evm_trace.base.CallTreeNode`
117117
"""
118118
root = root or traces[0]
119-
failed = any([t.error is not None for t in traces]) and root is not None
119+
failed = root.error is not None
120120
node_kwargs: Dict[Any, Any] = dict(
121121
call_type=root.call_type,
122122
failed=failed,

0 commit comments

Comments
 (0)