Skip to content

Commit

Permalink
refactor: display_nodes prop -> get_display_nodes() (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day authored Sep 7, 2022
1 parent f4959be commit 6acb4c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions evm_trace/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ class CallTreeNode(BaseModel):
failed: bool = False
display_cls: Type[DisplayableCallTreeNode] = DisplayableCallTreeNode

@property
def display_nodes(self) -> Iterator[DisplayableCallTreeNode]:
def get_display_nodes(self) -> Iterator[DisplayableCallTreeNode]:
return self.display_cls.make_tree(self)

def __str__(self) -> str:
return "\n".join([str(t) for t in self.display_nodes])
return "\n".join([str(t) for t in self.get_display_nodes()])

def __repr__(self) -> str:
return str(self)
Expand Down

0 comments on commit 6acb4c0

Please sign in to comment.