Skip to content

Commit

Permalink
fix(galoisd): missing assignation after setup (#961)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Updated variable assignment to enhance the consistency of data
handling within the server logic.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
hussein-aitlahcen authored Nov 22, 2023
2 parents 729e974 + 4b53879 commit 4a2c415
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions galoisd/grpc/api/v1/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ func loadOrCreate(r1csPath string, pkPath string, vkPath string) (cs_bn254.R1CS,
return cs, pk, vk, err
}

cs = *r1csInstance.(*cs_bn254.R1CS)

log.Println("Setup PK/VK")
err = backend_bn254.Setup(&cs, &pk, &vk)
if err != nil {
Expand Down

0 comments on commit 4a2c415

Please sign in to comment.