summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-08-05 20:42:04 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-08-05 20:42:04 +0200
commit1cab80953eda5547ee5ef2599a622fc8329e81ea (patch)
tree4fe1b8b993bdf7376ce3d1243f6b126d1458d8d6 /main
parentfef17af2437a8584d0435c94d85b9619b5264219 (diff)
Use MonadStorage for makeSharedStateUpdate
Changelog: API: `State.makeSharedStateUpdate` uses `MonadStorage`
Diffstat (limited to 'main')
-rw-r--r--main/Test.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/Test.hs b/main/Test.hs
index 9f52020..b59bd74 100644
--- a/main/Test.hs
+++ b/main/Test.hs
@@ -482,13 +482,13 @@ cmdCreateIdentity = do
st <- asks tiStorage
names <- asks tiParams
- h <- liftIO $ do
- Just identity <- if null names
+ h <- do
+ Just identity <- liftIO $ if null names
then Just <$> createIdentity st Nothing Nothing
else foldrM (\n o -> Just <$> createIdentity st (Just n) o) Nothing names
shared <- case names of
- _:_:_ -> (:[]) <$> makeSharedStateUpdate st (Just $ finalOwner identity) []
+ _:_:_ -> (: []) <$> makeSharedStateUpdate (Just $ finalOwner identity) []
_ -> return []
storeHead st $ LocalState