Skip to content

Commit

Permalink
fix configure_prover
Browse files Browse the repository at this point in the history
  • Loading branch information
bkolad committed Oct 8, 2023
1 parent 85cd564 commit 4d9461a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/demo-rollup/src/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use sov_modules_api::default_context::ZkDefaultContext;
#[cfg(feature = "experimental")]
use sov_modules_api::default_signature::private_key::DefaultPrivateKey;
use sov_modules_stf_template::AppTemplate;
use sov_risc0_adapter::guest::Risc0Guest;
use sov_rollup_interface::mocks::{
MockAddress, MockDaConfig, MockDaService, MOCK_SEQUENCER_DA_ADDRESS,
};
Expand Down Expand Up @@ -70,7 +69,7 @@ pub fn configure_prover<Vm: ZkvmHost, Da: DaService>(
) -> Prover<ZkStf<Da::Spec, Vm::Guest>, Da, Vm> {
let config = match cfg {
DemoProverConfig::Simulate => ProofGenConfig::Simulate(AppVerifier::new(
ZkApp::<Risc0Guest, _>::default().stf,
ZkApp::<Vm::Guest, _>::default().stf,
da_verifier,
)),
DemoProverConfig::Execute => ProofGenConfig::Execute,
Expand Down
4 changes: 2 additions & 2 deletions examples/demo-stf/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub enum Workflows<Da: DaSpec> {

#[derive(clap::Parser)]
#[command(author, version, about, long_about = None)]
pub struct App<Da: DaSpec> {
pub struct CliApp<Da: DaSpec> {
#[clap(subcommand)]
workflow: Workflows<Da>,
}
Expand All @@ -44,7 +44,7 @@ pub async fn run<Da: DaSpec + serde::Serialize + serde::de::DeserializeOwned>(
let mut wallet_state: WalletState<RuntimeCall<Ctx, Da>, Ctx> =
WalletState::load(&wallet_state_path)?;

let invocation = App::<Da>::parse();
let invocation = CliApp::<Da>::parse();

match invocation.workflow {
Workflows::Transactions(tx) => tx
Expand Down

0 comments on commit 4d9461a

Please sign in to comment.