Skip to content

Commit

Permalink
Fix vcs get command when no proofs exist yet (#15432) (#15534)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Hauff <[email protected]>
  • Loading branch information
wallentx and Quexington authored Jun 15, 2023
1 parent b519ff4 commit f8b09ce
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 f8b09ce

Please sign in to comment.