Skip to content

Commit

Permalink
πŸ’„ Add abi colum to 'w3 db contract list'
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido W. Pettinari committed Dec 17, 2022
1 parent 4b4e651 commit a076fc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/web3cli/controllers/db/contract_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ def list(self) -> None:
render_table(
self.app,
data=[
[c.name, c.chain, c.address] for c in Contract.get_all(Contract.name)
[c.name, c.chain, c.address, bool(c.abi)]
for c in Contract.get_all(Contract.name)
],
headers=["NAME", "CHAIN", "ADDRESS"],
headers=["NAME", "CHAIN", "ADDRESS", "ABI"],
wrap=42,
)

Expand Down

0 comments on commit a076fc3

Please sign in to comment.