Skip to content

Commit

Permalink
finish implementation of 'calcMinimumCoinValue' to also account for m…
Browse files Browse the repository at this point in the history
…ulti-assets
  • Loading branch information
KtorZ committed Jan 27, 2021
1 parent 6462940 commit 3ff070f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/shelley/src/Cardano/Wallet/Shelley/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ import Cardano.Wallet.Shelley.Compatibility
, toStakeKeyRegCert
, toStakePoolDlgCert
)
import Cardano.Wallet.Shelley.Compatibility.Ledger
( computeMinimumAdaQuantity )
import Cardano.Wallet.Transaction
( DelegationAction (..)
, ErrDecodeSignedTx (..)
Expand Down Expand Up @@ -379,9 +381,8 @@ _calcMinimumCoinValue
:: ProtocolParameters
-> TokenMap
-> Coin
_calcMinimumCoinValue pp _assets =
-- FIXME: ADP-506 / PR #2461
minimumUTxOvalue pp
_calcMinimumCoinValue pp =
computeMinimumAdaQuantity (minimumUTxOvalue pp)

_estimateMaxNumberOfInputs
:: forall k. TxWitnessTagFor k
Expand Down

0 comments on commit 3ff070f

Please sign in to comment.