Skip to content

Commit

Permalink
Simplify get_coins_with_ph (#17135)
Browse files Browse the repository at this point in the history
Simplify get_coins_with_ph.
  • Loading branch information
AmineKhaldi authored Dec 22, 2023
1 parent 6182b9d commit 68839f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/wallet/did_wallet/test_did.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,9 @@ async def test_creation_from_backup_file(self, self_hostname, three_wallet_nodes

await full_node_api.farm_blocks_to_wallet(1, wallet_0)

async def get_coins_with_ph():
async def get_coins_with_ph() -> bool:
coins = await full_node_api.full_node.coin_store.get_coin_records_by_puzzle_hash(True, some_ph)
if len(coins) == 1:
return True
return False
return len(coins) == 1

await time_out_assert(15, get_coins_with_ph, True)
await time_out_assert(45, did_wallet_2.get_confirmed_balance, 0)
Expand Down

0 comments on commit 68839f7

Please sign in to comment.