Python-Cardano/pycardano

cardano-cli context incorrect handling latest protocol params

KINGH242 opened this issue · 0 comments

When using the latest versions of the cardano-cli as ChainContext, the calculation for min_lovelace_post_alonzo returns 0 because of incorrect handling of the protocol parameters.

To reproduce, build a transaction using the latest cardano-cli as ChainContext, check min_lovelace_post_alonzo output.

tx_output = TransactionOutput(address, Value(1000000, multi_assets))

minimum_out_utxo = min_lovelace_post_alonzo(tx_output, context)   # This will be 0

I have the fix and will submit a Pull request shortly.