Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove no longer needed isinstance assert in mint_from_did and mint_from_xch for mypy's sake #17925

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions chia/wallet/nft_wallet/nft_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,6 @@ async def mint_from_did(
assert eve_sb is not None
eve_spends.append(eve_sb)
# Extract Puzzle Announcement from eve spend
assert isinstance(eve_sb, SpendBundle) # mypy
eve_sol = eve_sb.coin_spends[0].solution.to_program()
conds = eve_fullpuz.run(eve_sol)
eve_puzzle_announcement = [x for x in conds.as_python() if int_from_bytes(x[0]) == 62][0][1]
Expand Down Expand Up @@ -1665,7 +1664,6 @@ async def mint_from_xch(
assert eve_sb is not None
eve_spends.append(eve_sb)
# Extract Puzzle Announcement from eve spend
assert isinstance(eve_sb, SpendBundle) # mypy
eve_sol = eve_sb.coin_spends[0].solution.to_program()
conds = eve_fullpuz.run(eve_sol)
eve_puzzle_announcement = [x for x in conds.as_python() if int_from_bytes(x[0]) == 62][0][1]
Expand Down