From b1bd94aa722dca99a81ddbcc58a60c148856b61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=BCndler?= Date: Wed, 6 Mar 2024 16:26:37 +0100 Subject: [PATCH] Fix skipping coin if coin is 0 --- pycardano/coinselection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycardano/coinselection.py b/pycardano/coinselection.py index 9c3dc847..ce8dcb5c 100644 --- a/pycardano/coinselection.py +++ b/pycardano/coinselection.py @@ -183,7 +183,7 @@ def _random_select_subset( @staticmethod def _split_by_asset(value: Value) -> List[Value]: # Extract ADA - assets = [Value(value.coin)] + assets = [Value(value.coin)] if value.coin else [] # Extract native assets for policy_id, d in value.multi_asset.items():