-
Notifications
You must be signed in to change notification settings - Fork 214
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
Conversation
- 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
efe8ef5
to
88f74f3
Compare
88f74f3
to
6a01cc2
Compare
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`.
6a01cc2
to
5802258
Compare
@@ -16,10 +15,6 @@ | |||
{-# LANGUAGE UndecidableInstances #-} | |||
{-# LANGUAGE UndecidableSuperClasses #-} | |||
|
|||
{-# OPTIONS_GHC -Wno-warnings-deprecations #-} | |||
-- For 'Shelley.evaluateTransactionFee', see ADP-3334 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this 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
sizeOf_BootstrapWitnesses
)Comments
Issue Number
ADP-3334