mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-08 04:43:52 +00:00
updating ark cli
This commit is contained in:
parent
cfd8059244
commit
8f7aec5451
@ -128,6 +128,20 @@ proc run*() =
|
||||
|
||||
if files.inputs == "": files.inputs = dir / fmt"input.json"
|
||||
|
||||
var fileErrors = false
|
||||
template checkFile(file, name: untyped) =
|
||||
if file == "" or not file.fileExists():
|
||||
echo "\nERROR: must provide `" & name & "` file"
|
||||
fileErrors = true
|
||||
|
||||
checkFile files.inputs, "inputs.json"
|
||||
checkFile files.r1cs, "r1cs"
|
||||
checkFile files.wasm, "wasm"
|
||||
checkFile files.zkey, "zkey"
|
||||
|
||||
if fileErrors:
|
||||
quit 1
|
||||
|
||||
var
|
||||
inputData = files.inputs.readFile()
|
||||
inputs: JsonNode = !JsonNode.parse(inputData)
|
||||
|
Loading…
x
Reference in New Issue
Block a user