Skip to content

Commit

Permalink
Fix skipping coin if coin is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Mar 6, 2024
1 parent 1c6c103 commit b1bd94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycardano/coinselection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b1bd94a

Please sign in to comment.