Skip to content

Commit 4a97361

Browse files
committed
fix test
1 parent d5f6323 commit 4a97361

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

chia/_tests/wallet/rpc/test_wallet_rpc.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,21 +652,22 @@ async def test_create_signed_transaction(
652652
)
653653
)
654654
assert len(select_coins_response.coins) == 1
655+
selected_coin = select_coins_response.coins[0]
655656

656657
txs = (
657658
await wallet_1_rpc.create_signed_transactions(
658659
outputs,
659-
coins=selected_coin,
660+
coins=[selected_coin] if selected_coin is not None else [],
660661
fee=amount_fee,
661662
wallet_id=wallet_id,
662663
# shouldn't actually block it
663664
tx_config=DEFAULT_TX_CONFIG.override(
664-
excluded_coin_amounts=[uint64(selected_coin[0].amount)] if selected_coin is not None else [],
665+
excluded_coin_amounts=[uint64(selected_coin.amount)] if selected_coin is not None else [],
665666
),
666667
push=True,
667668
)
668669
).transactions
669-
change_expected = not selected_coin or selected_coin[0].amount - amount_total > 0
670+
change_expected = not selected_coin or selected_coin.amount - amount_total > 0
670671
assert_tx_amounts(txs[-1], outputs, amount_fee=amount_fee, change_expected=change_expected, is_cat=is_cat)
671672

672673
# Farm the transaction and make sure the wallet balance reflects it correct

0 commit comments

Comments
 (0)