Skip to content

Commit

Permalink
Merge pull request #2132 from Rapiiidooo/check_coldkey_swap_from_pub
Browse files Browse the repository at this point in the history
fix: coldkeypub usage instead of coldkey for arbitration_stats
  • Loading branch information
ibraheem-opentensor authored Jul 16, 2024
2 parents 8c603ab + b880dc2 commit 9f99bd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bittensor/commands/check_coldkey_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ def fetch_arbitration_stats(subtensor, wallet):
"""
Performs a check of the current arbitration data (if any), and displays it through the bittensor console.
"""
arbitration_check = len(subtensor.check_in_arbitration(wallet.coldkey.ss58_address))
arbitration_check = len(
subtensor.check_in_arbitration(wallet.coldkeypub.ss58_address)
)
if arbitration_check == 0:
bittensor.__console__.print(
"[green]There has been no previous key swap initiated for your coldkey.[/green]"
)
if arbitration_check == 1:
arbitration_remaining = subtensor.get_remaining_arbitration_period(
wallet.coldkey.ss58_address
wallet.coldkeypub.ss58_address
)
hours, minutes, seconds = convert_blocks_to_time(arbitration_remaining)
bittensor.__console__.print(
Expand Down

0 comments on commit 9f99bd4

Please sign in to comment.