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
4 changes: 2 additions & 2 deletions bittensor_cli/src/commands/crowd/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ async def create_crowdloan(
table.add_row(
"Estimated fee",
f"[{COLORS.P.TAO}]{extrinsic_fee}[/{COLORS.P.TAO}]"
+ (" (paid by real account)" if proxy else ""),
+ (" (paid by signer account)" if proxy else ""),
)
console.print(table)

Expand Down Expand Up @@ -678,7 +678,7 @@ async def finalize_crowdloan(
table.add_row(
"Transaction Fee",
f"[{COLORS.S.TAO}]{extrinsic_fee.tao}[/{COLORS.S.TAO}]"
+ (" (paid by real account)" if proxy else ""),
+ (" (paid by signer account)" if proxy else ""),
)

table.add_section()
Expand Down
7 changes: 4 additions & 3 deletions bittensor_cli/src/commands/stake/claim.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,12 @@ async def process_pending_claims(
) -> tuple[bool, str, Optional[str]]:
"""Claims root network emissions for the coldkey across specified subnets"""

coldkey_ss58 = proxy or wallet.coldkeypub.ss58_address
with console.status(":satellite: Discovering claimable emissions..."):
block_hash = await subtensor.substrate.get_chain_head()
all_stakes, identities = await asyncio.gather(
subtensor.get_stake_for_coldkey(
coldkey_ss58=wallet.coldkeypub.ss58_address, block_hash=block_hash
coldkey_ss58=coldkey_ss58, block_hash=block_hash
),
subtensor.query_all_identities(block_hash=block_hash),
)
Expand All @@ -272,7 +273,7 @@ async def process_pending_claims(
(stake.hotkey_ss58, stake.netuid): stake for stake in all_stakes
}
claimable_by_hotkey = await subtensor.get_claimable_stakes_for_coldkey(
coldkey_ss58=wallet.coldkeypub.ss58_address,
coldkey_ss58=coldkey_ss58,
stakes_info=all_stakes,
block_hash=block_hash,
)
Expand Down Expand Up @@ -344,7 +345,7 @@ async def process_pending_claims(
)
console.print(
f"\n[dim]Estimated extrinsic fee: {extrinsic_fee.tao:.9f} τ"
+ (" (paid by real account)" if proxy else "")
+ (" (paid by signer account)" if proxy else "")
)

if prompt:
Expand Down
2 changes: 1 addition & 1 deletion bittensor_cli/src/commands/subnets/subnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async def _find_event_attributes_in_extrinsic_receipt(
if not unlock_key(wallet).success:
return False, None, None

coldkey_ss58 = proxy or wallet.coldkeypub.ss58_address
coldkey_ss58 = wallet.coldkeypub.ss58_address

with console.status(":satellite: Registering subnet...", spinner="earth") as status:
substrate = subtensor.substrate
Expand Down