From fb32a7217e2fc422034b73212ccac96c1843cf14 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Fri, 22 Dec 2023 19:07:51 -0700 Subject: [PATCH] add nim ffi and genffi build task --- codex_storage_proofs.nim | 2 +- src/ffi.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codex_storage_proofs.nim b/codex_storage_proofs.nim index b1619b8..8bb8fd5 100644 --- a/codex_storage_proofs.nim +++ b/codex_storage_proofs.nim @@ -25,4 +25,4 @@ import codex_proofs_ffi export codex_proofs_ffi when isMainModule: - \ No newline at end of file + init() diff --git a/src/ffi.rs b/src/ffi.rs index 4dbb83f..f77cccf 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -37,9 +37,9 @@ impl ProofCtx { /// Construct a StorageProofs object #[no_mangle] pub unsafe extern "C" fn init( - r1cs: *const &Buffer, - wasm: *const &Buffer, - zkey: *const &Buffer, + r1cs: const Buffer, + wasm: const Buffer, + zkey: const Buffer, ) -> *mut StorageProofs { let r1cs = { if r1cs.is_null() {