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.
  • Loading branch information
AmineKhaldi committed Apr 29, 2024
1 parent 87a5d24 commit 5237f31
Showing 1 changed file with 0 additions and 2 deletions.
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

0 comments on commit 5237f31

Please sign in to comment.