Skip to content

Commit

Permalink
Use overloaded lists
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
palas and carbolymer committed Jan 7, 2025
1 parent c9d390f commit 25e9c36
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions cardano-api/test/cardano-api-test/Test/Cardano/Api/Experimental.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}

Expand All @@ -24,7 +25,6 @@ import qualified Cardano.Slotting.Slot as Slotting
import qualified Cardano.Slotting.Time as Slotting

import Control.Monad.Identity (Identity)
import Data.Map (fromList)
import Data.Maybe (fromMaybe)
import Data.Ratio ((%))
import qualified Data.Time as Time
Expand Down Expand Up @@ -148,17 +148,16 @@ prop_balance_transaction_two_ways = H.propertyOnce $ do
Api.LedgerEpochInfo $ Slotting.fixedEpochInfo (Slotting.EpochSize 100) (Slotting.mkSlotLength 1000)
let utxoToUse =
Api.UTxO
( fromList
[
( srcTxId
, Api.TxOut
changeAddress
(Api.lovelaceToTxOutValue sbe 12_000_000)
Api.TxOutDatumNone
Script.ReferenceScriptNone
)
]
)
[
( srcTxId
, Api.TxOut
changeAddress
(Api.lovelaceToTxOutValue sbe 12_000_000)
Api.TxOutDatumNone
Script.ReferenceScriptNone
)
]

Api.BalancedTxBody
_txBodyContent3
_txBody3
Expand Down

0 comments on commit 25e9c36

Please sign in to comment.