Skip to content
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

Replace deprecated evaluateTransactionFee with getMinFeeTx #4631

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

Anviking
Copy link
Member

@Anviking Anviking commented Jun 14, 2024

  • Replace deprecated evaluateTransactionFee with getMinFeeTx in a minimal way (keep using our own sizeOf_BootstrapWitnesses)

Comments

Issue Number

ADP-3334

@Anviking Anviking self-assigned this Jun 14, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jun 27, 2024
- Add `getUTxOByTxIn` local state query
- Resolve `PartialTx` inputs over LSQ in `Cardano.Wallet.balanceTx`

### Comments

This is part of the fix for the [integration test in the 8.11
branch](https://buildkite.com/cardano-foundation/cardano-wallet/builds/5254#018fee3c-01ad-441e-bb7e-25acd78cb7f3);
if we have the UTxO of the reference input containing the script used
for minting in constructTx, then `Ledger.getMinFeeTxUtxo pp tx utxo`
will correctly account for minFeeRefScriptCoinsPerByte *
totalRefScriptSize.

Previous step: #4629
Next step: #4631

### Issue Number

ADP-3373
@Anviking Anviking force-pushed the anviking/ADP-3334/getMinFeeTx branch 2 times, most recently from efe8ef5 to 88f74f3 Compare June 27, 2024 15:46
@Anviking Anviking marked this pull request as ready for review June 27, 2024 17:18
@Anviking Anviking force-pushed the anviking/ADP-3334/getMinFeeTx branch from 88f74f3 to 6a01cc2 Compare June 27, 2024 17:33
With the 8.11 node the deprecated `evaluateTransactionFee` is removed,
and additionally, we will need to adapt to changes to the calculation
present in `getMinFeeTxUtxo`.
@@ -16,10 +15,6 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UndecidableSuperClasses #-}

{-# OPTIONS_GHC -Wno-warnings-deprecations #-}
-- For 'Shelley.evaluateTransactionFee', see ADP-3334
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adept refactoring 💎

I wonder given those quite numerous int cast whether it is not reasonable to refactor upstream the types and use Word rather than Int etc. It would be even more straightforward to use getMinFeeTx

@Anviking Anviking added this pull request to the merge queue Jun 28, 2024
Merged via the queue into master with commit b61a19a Jun 28, 2024
3 checks passed
@Anviking Anviking deleted the anviking/ADP-3334/getMinFeeTx branch June 28, 2024 08:37
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

Successfully merging this pull request may close these issues.

2 participants