diff --git a/nssa/src/lib.rs b/nssa/src/lib.rs index 296cb2a..0dd4ff2 100644 --- a/nssa/src/lib.rs +++ b/nssa/src/lib.rs @@ -7,12 +7,12 @@ pub mod public_transaction; mod signature; mod state; -pub use program_methods::PRIVACY_PRESERVING_CIRCUIT_ID; pub use nssa_core::account::{Account, AccountId}; pub use nssa_core::address::Address; pub use privacy_preserving_transaction::{ PrivacyPreservingTransaction, circuit::execute_and_prove, }; +pub use program_methods::PRIVACY_PRESERVING_CIRCUIT_ID; pub use public_transaction::PublicTransaction; pub use signature::PrivateKey; pub use signature::PublicKey; diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index 12505ff..e56aea6 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -11,7 +11,7 @@ use anyhow::Result; use chain_storage::WalletChainStore; use config::WalletConfig; use log::info; -use nssa::{program::Program, Account, Address}; +use nssa::{Account, Address, program::Program}; use clap::{Parser, Subcommand}; use nssa_core::Commitment; @@ -379,7 +379,7 @@ pub enum Command { }, // Check the wallet can connect to the node and builtin local programs // match the remote versions - CheckHealth { } + CheckHealth {}, } ///To execute commands, env var NSSA_WALLET_HOME_DIR must be set into directory with config @@ -850,9 +850,14 @@ pub async fn execute_subcommand(command: Command) -> Result { - let remote_program_ids = wallet_core.sequencer_client.get_program_ids().await.expect("Error fetching program ids"); - let Some(authenticated_transfer_id) = remote_program_ids.get("authenticated_transfer") else { + Command::CheckHealth {} => { + let remote_program_ids = wallet_core + .sequencer_client + .get_program_ids() + .await + .expect("Error fetching program ids"); + let Some(authenticated_transfer_id) = remote_program_ids.get("authenticated_transfer") + else { panic!("Missing authenticated transfer ID from remote"); }; if authenticated_transfer_id != &Program::authenticated_transfer_program().id() {