Skip to content

Commit

Permalink
CLB util improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed May 28, 2024
1 parent 872d490 commit 546b59f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Cardano/CEM/Monads/CLB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@ instance (MonadFail m) => MonadSubmitTx (ClbT m) where
instance (MonadFail m) => MonadTest (ClbT m) where
getTestWalletSks = return $ map intToCardanoSk [1 .. 10]

genesisClbState :: Value -> ClbState
genesisClbState genesisValue =
initClb defaultBabbage genesisValue genesisValue

execOnIsolatedClb :: Value -> ClbT IO a -> IO a
execOnIsolatedClb genesisValue action =
fst
<$> runStateT
(unwrapClbT action)
(initClb defaultBabbage genesisValue genesisValue)
(genesisClbState genesisValue)

0 comments on commit 546b59f

Please sign in to comment.