Skip to content

Commit b1bd94a

Browse files
committed
Fix skipping coin if coin is 0
1 parent 1c6c103 commit b1bd94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/coinselection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _random_select_subset(
183183
@staticmethod
184184
def _split_by_asset(value: Value) -> List[Value]:
185185
# Extract ADA
186-
assets = [Value(value.coin)]
186+
assets = [Value(value.coin)] if value.coin else []
187187

188188
# Extract native assets
189189
for policy_id, d in value.multi_asset.items():

0 commit comments

Comments
 (0)