Skip to content

cardano-cli context incorrect handling latest protocol params #350

Closed
@KINGH242

Description

@KINGH242

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions