Skip to content

cardano-cli context incorrect handling latest protocol params #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KINGH242 opened this issue May 23, 2024 · 0 comments
Closed

cardano-cli context incorrect handling latest protocol params #350

KINGH242 opened this issue May 23, 2024 · 0 comments

Comments

@KINGH242
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants