File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ import System.FilePath ((</>))
12
12
import ZkPass.Api.Context
13
13
14
14
15
- -- | Setup input parameters .
15
+ -- | Input with scripts' reference TxId .
16
16
data SaveRefInput = SaveRefInput { sriTxId :: ! String }
17
17
deriving stock (Show , Generic )
18
18
deriving anyclass FromJSON
19
19
20
- -- | Setup response
20
+ -- | Boolean response.
21
21
data SaveRefResponse = SaveRefResponse { srSaved :: ! Bool }
22
22
deriving stock (Show , Generic )
23
23
deriving anyclass ToJSON
24
24
25
- -- | Handle to construct setup response .
25
+ -- | Handle to save scripts' reference TxId .
26
26
handleSaveRef :: FilePath -> SaveRefInput -> IO SaveRefResponse
27
27
handleSaveRef path SaveRefInput {.. } = do
28
28
let setupFile = path </> " setup-params.json"
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ handleSetup ctx path SetupInput{..} = do
47
47
providers = ctxProviders ctx
48
48
setupFile = path </> " setup-params.json"
49
49
50
- setupFileFlag <- doesFileExist setupFile
50
+ setupFileExists <- doesFileExist setupFile
51
51
52
- if setupFileFlag
52
+ if setupFileExists
53
53
then return $ SetupResponse Nothing
54
54
else do
55
55
x <- generate arbitrary
You can’t perform that action at this time.
0 commit comments