Skip to content

Commit

Permalink
fixup: actually use genData
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Oct 28, 2022
1 parent 7d74fba commit fc58093
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/wallet/test/unit/Cardano/Wallet/Write/TxSpec.hs
Expand Up @@ -14,7 +14,8 @@ import Cardano.Api.Gen
import Cardano.Wallet.Unsafe
( unsafeFromHex )
import Cardano.Wallet.Write.Tx
( LatestEra
( BinaryData
, LatestEra
, LatestLedgerEra
, RecentEra (RecentEraBabbage)
, Script
Expand All @@ -34,7 +35,7 @@ import Cardano.Wallet.Write.Tx
, toCardanoUTxO
)
import Cardano.Wallet.Write.Tx.Gen
( genTxOut )
( genData, genTxOut, shrinkData )
import Data.Aeson
( (.=) )
import Data.Aeson.Types
Expand Down Expand Up @@ -143,6 +144,12 @@ instance Arbitrary Cardano.ScriptData where
arbitrary = genScriptData
shrink = shrinkScriptData

-- | The OVERLAPS can be removed when we remove import of
-- "Test.Cardano.Ledger.Alonzo.Serialisation.Generators"
instance {-# OVERLAPS #-} Arbitrary (BinaryData LatestLedgerEra) where
arbitrary = genData
shrink = shrinkData

instance Arbitrary Cardano.ScriptInAnyLang where
arbitrary = genScriptInAnyLang

Expand Down

0 comments on commit fc58093

Please sign in to comment.