Skip to content

Commit

Permalink
Fix vcs get command when no proofs exist yet (#15432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quexington authored and wallentx committed Jun 15, 2023
1 parent 33fa3f4 commit 85fdc8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chia/cmds/wallet_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,9 +1312,10 @@ async def get_vcs(args: Dict, wallet_client: WalletRpcClient, fingerprint: int)
vc_records, proofs = await wallet_client.vc_get_list(args["start"], args["count"])
print("Proofs:")
for hash, proof_dict in proofs.items():
print(f"- {hash}")
for proof in proof_dict:
print(f" - {proof}")
if proof_dict is not None:
print(f"- {hash}")
for proof in proof_dict:
print(f" - {proof}")
for record in vc_records:
print("")
print(f"Launcher ID: {record.vc.launcher_id.hex()}")
Expand Down

0 comments on commit 85fdc8b

Please sign in to comment.