Skip to content

Commit

Permalink
Fix min_utxo could be none
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Sep 2, 2024
1 parent 1fb7566 commit b55dfaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycardano/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def min_lovelace_pre_alonzo(
int: Minimum required lovelace amount for this transaction output.
"""
if amount is None or isinstance(amount, int) or not amount.multi_asset:
return context.protocol_param.min_utxo
return context.protocol_param.min_utxo or 1_000_000

b_size = bundle_size(amount.multi_asset)
utxo_entry_size = 27
Expand Down

0 comments on commit b55dfaf

Please sign in to comment.