Skip to content

Commit

Permalink
fix: update arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Aug 16, 2024
1 parent e17edf0 commit 3af1f46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bindings/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use compute_cells_and_kzg_proofs::_compute_cells_and_kzg_proofs;

mod verify_cells_and_kzg_proofs_batch;
use rust_eth_kzg::constants::RECOMMENDED_PRECOMP_WIDTH;
use rust_eth_kzg::ThreadCount;
use verify_cells_and_kzg_proofs_batch::_verify_cell_kzg_proof_batch;

mod recover_cells_and_kzg_proofs;
Expand Down Expand Up @@ -62,7 +63,7 @@ pub extern "C" fn eth_kzg_das_context_new() -> *mut DASContext {
let ctx = Box::new(DASContext {
inner: rust_eth_kzg::DASContext::with_threads(
&rust_eth_kzg::TrustedSetup::default(),
1,
ThreadCount::Multi(1),
rust_eth_kzg::UsePrecomp::Yes {
width: RECOMMENDED_PRECOMP_WIDTH,
},
Expand Down
4 changes: 2 additions & 2 deletions bindings/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use napi_derive::napi;

use rust_eth_kzg::{
constants::{self, RECOMMENDED_PRECOMP_WIDTH},
DASContext, TrustedSetup, UsePrecomp,
DASContext, ThreadCount, TrustedSetup, UsePrecomp,
};

#[napi]
Expand Down Expand Up @@ -48,7 +48,7 @@ impl DASContextJs {
DASContextJs {
inner: Arc::new(DASContext::with_threads(
&TrustedSetup::default(),
1,
ThreadCount::Single,
UsePrecomp::Yes {
width: RECOMMENDED_PRECOMP_WIDTH,
},
Expand Down

0 comments on commit 3af1f46

Please sign in to comment.