Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use minimal box #1070

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ape/utils/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from evm_trace.display import TreeRepresentation
from evm_trace.gas import merge_reports
from hexbytes import HexBytes
from rich.box import MINIMAL as BOX_TYPE
from rich.table import Table
from rich.tree import Tree

Expand Down Expand Up @@ -291,7 +292,7 @@ def parse_as_gas_report(self, call: CallTreeNode) -> List[Table]:

for contract_id, method_calls in report.items():
title = f"{contract_id} Gas"
table = Table(title=title)
table = Table(title=title, box=BOX_TYPE)
table.add_column("Method")
table.add_column("Times called")
table.add_column("Min.")
Expand Down