Skip to content

Commit

Permalink
Remove no longer needed isinstance assert in mint_from_did and mint_f…
Browse files Browse the repository at this point in the history
…rom_xch for mypy's sake (#17925)

Remove no longer needed isinstance assert in mint_from_did and mint_from_xch for mypy's sake.
  • Loading branch information
AmineKhaldi committed May 13, 2024
1 parent b93faf0 commit 250a6ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chia/wallet/nft_wallet/nft_wallet.py
Expand Up @@ -1382,7 +1382,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 @@ -1626,7 +1625,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

0 comments on commit 250a6ab

Please sign in to comment.