Skip to content

Commit

Permalink
Fixes in demo-prover
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Jul 17, 2023
1 parent e622275 commit e3c8548
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/demo-prover/host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use demo_stf::runner_config::{from_toml_path, Config as RunnerConfig};
use jupiter::da_service::{CelestiaService, DaServiceConfig};
use jupiter::types::NamespaceId;
use jupiter::verifier::RollupParams;
use jupiter::BlobWithSender;
use methods::{ROLLUP_ELF, ROLLUP_ID};
use risc0_adapter::host::Risc0Host;
use serde::Deserialize;
Expand Down Expand Up @@ -54,7 +55,8 @@ async fn main() -> Result<(), anyhow::Error> {

let sequencer_private_key = DefaultPrivateKey::generate();

let mut demo_runner = NativeAppRunner::<Risc0Host>::new(rollup_config.runner.clone());
let mut demo_runner =
NativeAppRunner::<Risc0Host, BlobWithSender>::new(rollup_config.runner.clone());
let is_storage_empty = demo_runner.get_storage().is_empty();
let demo = demo_runner.inner_mut();

Expand Down
3 changes: 2 additions & 1 deletion examples/demo-prover/methods/guest/src/bin/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ pub fn main() {
env::write(&"txs read\n");

// Step 2: Apply blobs
let mut demo_runner = <ZkAppRunner<Risc0Guest> as StateTransitionRunner<
let mut demo_runner = <ZkAppRunner<Risc0Guest, BlobWithSender> as StateTransitionRunner<
ZkConfig,
Risc0Guest,
BlobWithSender,
>>::new(prev_state_root_hash);
let demo = demo_runner.inner_mut();

Expand Down

0 comments on commit e3c8548

Please sign in to comment.