Skip to content

Commit

Permalink
Call the Close method on witness calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
olomix committed Sep 10, 2024
1 parent 1d4fdbd commit 4fd6a32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/proof/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.18

require github.com/iden3/go-rapidsnark/prover v0.0.2

require github.com/iden3/go-rapidsnark/types v0.0.1 // indirect
require github.com/iden3/go-rapidsnark/types v0.0.3 // indirect

replace github.com/iden3/go-rapidsnark/prover => ../../prover
4 changes: 2 additions & 2 deletions cmd/proof/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/iden3/go-rapidsnark/types v0.0.1 h1:WTGzdFXKlKo0CzVk1jyN4FsTDKdR+EPfn2wR3pdeXKQ=
github.com/iden3/go-rapidsnark/types v0.0.1/go.mod h1:ApgcaUxKIgSRA6fAeFxK7p+lgXXfG4oA2HN5DhFlfF4=
github.com/iden3/go-rapidsnark/types v0.0.3 h1:f0s1Qdut1qHe1O67+m+xUVRBPwSXnq5j0xSrBi0jqM4=
github.com/iden3/go-rapidsnark/types v0.0.3/go.mod h1:ApgcaUxKIgSRA6fAeFxK7p+lgXXfG4oA2HN5DhFlfF4=
4 changes: 4 additions & 0 deletions witness/test_wasm_impls/witness_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func TestEngines(t *testing.T) {

require.NoError(t, err)

defer func() {
require.NoError(t, calc.Close())
}()

inputs, err := witness.ParseInputs(inputBytes)
require.NoError(t, err)

Expand Down

0 comments on commit 4fd6a32

Please sign in to comment.