diff --git a/kinode/packages/app_store/app_store/src/lib.rs b/kinode/packages/app_store/app_store/src/lib.rs index 0fad6620..808f60c8 100644 --- a/kinode/packages/app_store/app_store/src/lib.rs +++ b/kinode/packages/app_store/app_store/src/lib.rs @@ -156,7 +156,10 @@ fn init(our: Address) { state = State::new(CONTRACT_ADDRESS.to_string()).unwrap(); } + #[cfg(not(feature = "simulation-mode"))] println!("indexing on contract address {}", state.contract_address); + #[cfg(feature = "simulation-mode")] + println!("simulation mode: not indexing packages"); // create new provider for sepolia with request-timeout of 60s // can change, log requests can take quite a long time. diff --git a/kinode/packages/kns_indexer/kns_indexer/src/lib.rs b/kinode/packages/kns_indexer/kns_indexer/src/lib.rs index 33faa818..799dcc7e 100644 --- a/kinode/packages/kns_indexer/kns_indexer/src/lib.rs +++ b/kinode/packages/kns_indexer/kns_indexer/src/lib.rs @@ -120,7 +120,10 @@ call_init!(init); fn init(our: Address) { let (chain_id, contract_address) = (10, KNS_OPTIMISM_ADDRESS.to_string()); + #[cfg(not(feature = "simulation-mode"))] println!("indexing on contract address {}", contract_address); + #[cfg(feature = "simulation-mode")] + println!("simulation mode: not indexing KNS"); // if we have state, load it in let state: State = match get_typed_state(|bytes| Ok(bincode::deserialize::(bytes)?)) {