Skip to content

Commit

Permalink
Merge pull request #314 from opentensor/fix/more-substrate-artifacts
Browse files Browse the repository at this point in the history
Fixes fmt err msg
  • Loading branch information
ibraheem-opentensor authored Feb 13, 2025
2 parents dba6c85 + 6eeb9b1 commit 7878c5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bittensor_cli/src/commands/stake/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def safe_stake_extrinsic(
await response.process_events()
if not await response.is_success:
err_out(
f"\n{failure_prelude} with error: {format_error_message(await response.error_message, subtensor.substrate)}"
f"\n{failure_prelude} with error: {format_error_message(await response.error_message)}"
)
else:
block_hash = await subtensor.substrate.get_chain_head()
Expand Down Expand Up @@ -188,7 +188,7 @@ async def stake_extrinsic(
await response.process_events()
if not await response.is_success:
err_out(
f"\n{failure_prelude} with error: {format_error_message(await response.error_message, subtensor.substrate)}"
f"\n{failure_prelude} with error: {format_error_message(await response.error_message)}"
)
else:
new_balance, new_stake = await asyncio.gather(
Expand Down
4 changes: 2 additions & 2 deletions bittensor_cli/src/commands/stake/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ async def transfer_stake(
if not await response.is_success:
err_console.print(
f":cross_mark: [red]Failed[/red] with error: "
f"{format_error_message(await response.error_message, subtensor.substrate)}"
f"{format_error_message(await response.error_message)}"
)
return False

Expand Down Expand Up @@ -971,7 +971,7 @@ async def swap_stake(
if not await response.is_success:
err_console.print(
f":cross_mark: [red]Failed[/red] with error: "
f"{format_error_message(await response.error_message, subtensor.substrate)}"
f"{format_error_message(await response.error_message)}"
)
return False

Expand Down
4 changes: 2 additions & 2 deletions bittensor_cli/src/commands/stake/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ async def _unstake_extrinsic(
if not await response.is_success:
err_out(
f"{failure_prelude} with error: "
f"{format_error_message(await response.error_message, subtensor.substrate)}"
f"{format_error_message(await response.error_message)}"
)
return

Expand Down Expand Up @@ -674,7 +674,7 @@ async def _safe_unstake_extrinsic(
await response.process_events()
if not await response.is_success:
err_out(
f"\n{failure_prelude} with error: {format_error_message(await response.error_message, subtensor.substrate)}"
f"\n{failure_prelude} with error: {format_error_message(await response.error_message)}"
)
return

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 @@ -183,7 +183,7 @@ async def _find_event_attributes_in_extrinsic_receipt(
await response.process_events()
if not await response.is_success:
err_console.print(
f":cross_mark: [red]Failed[/red]: {format_error_message(await response.error_message, substrate)}"
f":cross_mark: [red]Failed[/red]: {format_error_message(await response.error_message)}"
)
await asyncio.sleep(0.5)
return False
Expand Down

0 comments on commit 7878c5c

Please sign in to comment.