Skip to content

Commit 5f3e407

Browse files
committed
Cleanup
1 parent e83cbe5 commit 5f3e407

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/ZkPass/Api/SaveScriptsRef.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ import System.FilePath ((</>))
1212
import ZkPass.Api.Context
1313

1414

15-
-- | Setup input parameters.
15+
-- | Input with scripts' reference TxId.
1616
data SaveRefInput = SaveRefInput { sriTxId :: !String }
1717
deriving stock (Show, Generic)
1818
deriving anyclass FromJSON
1919

20-
-- | Setup response
20+
-- | Boolean response.
2121
data SaveRefResponse = SaveRefResponse { srSaved :: !Bool }
2222
deriving stock (Show, Generic)
2323
deriving anyclass ToJSON
2424

25-
-- | Handle to construct setup response.
25+
-- | Handle to save scripts' reference TxId.
2626
handleSaveRef :: FilePath -> SaveRefInput -> IO SaveRefResponse
2727
handleSaveRef path SaveRefInput{..} = do
2828
let setupFile = path </> "setup-params.json"

app/ZkPass/Api/Setup.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ handleSetup ctx path SetupInput{..} = do
4747
providers = ctxProviders ctx
4848
setupFile = path </> "setup-params.json"
4949

50-
setupFileFlag <- doesFileExist setupFile
50+
setupFileExists <- doesFileExist setupFile
5151

52-
if setupFileFlag
52+
if setupFileExists
5353
then return $ SetupResponse Nothing
5454
else do
5555
x <- generate arbitrary

0 commit comments

Comments
 (0)