From 042efb7bccc4cdda2d83c1167d777bbeda7d0c5a Mon Sep 17 00:00:00 2001 From: BD Himes Date: Thu, 18 Dec 2025 21:22:55 +0200 Subject: [PATCH 1/2] Account for 0x-prepended call hashes --- bittensor_cli/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index dd386e59d..1c004d682 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -9624,7 +9624,11 @@ def proxy_execute_announced( executed_int, ) = row executed = bool(executed_int) - if call_hash_ == call_hash and address == proxy and executed is False: + if ( + (call_hash_ == call_hash or f"0x{call_hash_}" == call_hash) + and address == proxy + and executed is False + ): potential_call_matches.append(row) if len(potential_call_matches) == 1: block = potential_call_matches[0][3] From 52809e1c0b8be93e46f75534398c4847a24721c0 Mon Sep 17 00:00:00 2001 From: BD Himes Date: Thu, 18 Dec 2025 21:32:20 +0200 Subject: [PATCH 2/2] Update output to hexify the bytes --- bittensor_cli/src/bittensor/subtensor_interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bittensor_cli/src/bittensor/subtensor_interface.py b/bittensor_cli/src/bittensor/subtensor_interface.py index 10004797f..abdcfa961 100644 --- a/bittensor_cli/src/bittensor/subtensor_interface.py +++ b/bittensor_cli/src/bittensor/subtensor_interface.py @@ -1280,7 +1280,9 @@ async def create_signed(call_to_sign, n): call=call_to_announce, ) console.print( - f"Added entry {call_to_announce.call_hash} at block {block} to your ProxyAnnouncements address book." + f"Added entry [green]{call_to_announce.call_hash.hex()}[/green] " + f"at block {block} to your ProxyAnnouncements address book. You can execute this with\n" + f"[blue]btcli proxy execute --call-hash {call_to_announce.call_hash.hex()}[/blue]" ) return True, inner_hash, response else: