Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "vanta-cli"
version = "2.0.2"
version = "2.0.3"
description = "Vanta Network CLI"
readme = "README.md"
authors = [
Expand Down
5 changes: 5 additions & 0 deletions vanta_cli/src/commands/collateral/deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ async def deposit(
# Check if source_stake is empty to avoid index error
if not source_stake:
console.print("[red]❌ No source stake found for this coldkey[/red]")
manager.subtensor_api.close()
return None

if not matching_stake:
console.print(f"[red]❌ No stake found for hotkey {hotkey} on netuid {netuid}[/red]")
manager.subtensor_api.close()
return None

if verbose:
Expand All @@ -143,6 +145,9 @@ async def deposit(
encoded = manager.encode_extrinsic(extrinsic)
decoded = manager.decode_extrinsic(encoded)

# Close the subtensor connection to prevent CLI from hanging
manager.subtensor_api.close()

if verbose:
console.print("[cyan]Encoded extrinsic:[/cyan]")
console.print(json.dumps(str(encoded), indent=2))
Expand Down
2 changes: 1 addition & 1 deletion vanta_cli/vanta.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def asset_select(
validate=WV.WALLET_AND_HOTKEY,
)

assets = ["crypto", "forex"]
assets = ["crypto", "forex", "equities"]

for idx, asset in enumerate(assets, start=1):
console.print(f"{idx}. {asset}")
Expand Down