From cff5fba0ac46d4dc2b717ddca1a199c173841823 Mon Sep 17 00:00:00 2001 From: xander42280 Date: Mon, 23 Sep 2024 09:09:11 +0800 Subject: [PATCH] fix input_stream --- sdk/src/local/stark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/local/stark.rs b/sdk/src/local/stark.rs index ab33b9b2..1c0818cc 100644 --- a/sdk/src/local/stark.rs +++ b/sdk/src/local/stark.rs @@ -13,8 +13,8 @@ pub fn prove_stark(input: &ProverInput, storedir: &str, result: &mut ProverResul state.patch_elf(&file); state.patch_stack(vec![]); - state.add_input_stream(&input.public_inputstream); - state.add_input_stream(&input.private_inputstream); + state.input_stream.push(input.public_inputstream.clone()); + state.input_stream.push(input.private_inputstream.clone()); let (total_steps, state) = split_prog_into_segs(state, &seg_path, "", seg_size); result.output_stream = state.public_values_stream.clone();