Skip to content

Commit

Permalink
add missing to plotnft
Browse files Browse the repository at this point in the history
  • Loading branch information
jack60612 committed Jun 18, 2024
1 parent 507c6b1 commit 6ba10c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions chia/cmds/plotnft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import click

from chia.cmds import options
from chia.cmds.param_types import AddressParamType, CliAddress
from chia.cmds.param_types import AddressParamType, Bytes32ParamType, CliAddress
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.util.ints import uint64


Expand Down Expand Up @@ -33,8 +34,8 @@ def show_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: int) -> None:


@plotnft_cmd.command("get_login_link", help="Create a login link for a pool. To get the launcher id, use plotnft show.")
@click.option("-l", "--launcher_id", help="Launcher ID of the plotnft", type=str, required=True)
def get_login_link_cmd(launcher_id: str) -> None:
@click.option("-l", "--launcher_id", help="Launcher ID of the plotnft", type=Bytes32ParamType(), required=True)
def get_login_link_cmd(launcher_id: bytes32) -> None:
import asyncio

from .plotnft_funcs import get_login_link
Expand Down
3 changes: 1 addition & 2 deletions chia/cmds/plotnft_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ async def show(wallet_rpc_port: Optional[int], fp: Optional[int], wallet_id_pass
await pprint_all_pool_wallet_state(wallet_client, summaries_response, address_prefix, pool_state_dict)


async def get_login_link(launcher_id_str: str) -> None:
launcher_id: bytes32 = bytes32.from_hexstr(launcher_id_str)
async def get_login_link(launcher_id: bytes32) -> None:
async with get_any_service_client(FarmerRpcClient) as (farmer_client, _):
login_link: Optional[str] = await farmer_client.get_pool_login_link(launcher_id)
if login_link is None:
Expand Down

0 comments on commit 6ba10c1

Please sign in to comment.