Skip to content

Commit

Permalink
Fix SHELLEY_CREATE_MIGRATION_PLAN_04
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Jul 22, 2021
1 parent b17b29c commit 86bfd25
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -19,7 +19,8 @@ import Prelude
import Cardano.Mnemonic
( entropyToMnemonic, genEntropy, mnemonicToText )
import Cardano.Wallet.Api.Types
( ApiT (..)
( ApiEra (..)
, ApiT (..)
, ApiTransaction
, ApiUtxoStatistics
, ApiWallet
Expand Down Expand Up @@ -222,8 +223,10 @@ spec = describe "SHELLEY_MIGRATIONS" $ do
-- small enough to make the migration algorithm categorize the
-- entry as a freerider.

let minUTxOValue' = fromIntegral . minUTxOValue . _mainEra $ ctx
let perEntryAdaQuantity = Coin (2_100_000 + minUTxOValue')
let perEntryAdaQuantity = Coin $ case _mainEra ctx of
e | e >= ApiAlonzo -> 3_100_000
| otherwise -> 3_300_000

let perEntryAssetCount = 10
let batchSize = 20
liftIO $ _mintSeaHorseAssets ctx
Expand Down

0 comments on commit 86bfd25

Please sign in to comment.