fix stuffs

This commit is contained in:
Jaremy Creechley 2024-01-10 16:32:48 +02:00
parent c404233d8a
commit ecef418135
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -9,8 +9,11 @@ suite "storage proofs ffi":
r1csPath = "src/circuit_tests/artifacts/storer-test.r1cs".absolutePath() r1csPath = "src/circuit_tests/artifacts/storer-test.r1cs".absolutePath()
wasmPath = "src/circuit_tests/artifacts/storer-test_js/storer-test.wasm".absolutePath() wasmPath = "src/circuit_tests/artifacts/storer-test_js/storer-test.wasm".absolutePath()
assert r1csPath.fileExists() if not r1csPath.fileExists():
assert wasmPath.fileExists() raise newException(ValueError, "missing expected r1cs file: " & r1csPath)
if not wasmPath.fileExists():
raise newException(ValueError, "missing expected wasm file: " & wasmPath)
let let
r1cs_buff = unsafeBufferPath(r1csPath) r1cs_buff = unsafeBufferPath(r1csPath)
wasm_buff = unsafeBufferPath(wasmPath) wasm_buff = unsafeBufferPath(wasmPath)