Don't needlessly call spend_bundle.additions() in test_subscribe_for_coin_id (#17255)

Don't needlessly call tx_record.spend_bundle.additions() in test_subscribe_for_coin_id.
This commit is contained in:
Amine Khaldi 2024-01-10 21:42:21 +01:00 committed by GitHub
parent 001cccfffb
commit d08c0697a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,8 +288,6 @@ class TestSimpleSyncProtocol:
uint64(10), puzzle_hash, DEFAULT_TX_CONFIG, uint64(0) uint64(10), puzzle_hash, DEFAULT_TX_CONFIG, uint64(0)
) )
tx_record.spend_bundle.additions()
added_target: Optional[Coin] = None added_target: Optional[Coin] = None
for coin in tx_record.spend_bundle.additions(): for coin in tx_record.spend_bundle.additions():
if coin.puzzle_hash == puzzle_hash: if coin.puzzle_hash == puzzle_hash: