Skip to content

Commit

Permalink
add db in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
xgaozoyoe committed Oct 19, 2024
1 parent d13ab38 commit 41abcfe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use delphinus_zkwasm::runtime::host::default_env::ExecutionArg;
use args::HostMode;
use config::Config;
use delphinus_zkwasm::runtime::host::HostEnvBuilder;
use delphinus_zkwasm::zkwasm_host_circuits::host::db::MongoDB;
use file_backend::FileBackendBuilder;
use names::name_of_config;
use specs::args::parse_args;
Expand Down Expand Up @@ -86,7 +87,7 @@ fn main() -> Result<()> {
private_inputs,
context_inputs,
indexed_witness: Rc::new(RefCell::new(HashMap::default())),
tree_db: None,
tree_db: Some(Rc::new(RefCell::new(MongoDB::new([0; 32], None)))),
},
arg.running_arg.context_output,
arg.instruction_limit,
Expand Down Expand Up @@ -123,7 +124,7 @@ fn main() -> Result<()> {
private_inputs,
context_inputs,
indexed_witness: Rc::new(RefCell::new(HashMap::default())),
tree_db: None,
tree_db: Some(Rc::new(RefCell::new(MongoDB::new([0; 32], None)))),
},
arg.running_arg.context_output,
arg.mock_test,
Expand All @@ -144,7 +145,7 @@ fn main() -> Result<()> {
private_inputs,
context_inputs,
indexed_witness: Rc::new(RefCell::new(HashMap::default())),
tree_db: None,
tree_db: Some(Rc::new(RefCell::new(MongoDB::new([0; 32], None)))),
},
arg.running_arg.context_output,
arg.mock_test,
Expand Down

0 comments on commit 41abcfe

Please sign in to comment.