diff --git a/forester/src/external_services_config.rs b/forester/src/external_services_config.rs index 6034dddb66..888fcdb70f 100644 --- a/forester/src/external_services_config.rs +++ b/forester/src/external_services_config.rs @@ -4,6 +4,7 @@ pub struct ExternalServicesConfig { pub ws_rpc_url: String, pub indexer_url: String, pub prover_url: String, + pub derivation: String } impl ExternalServicesConfig { @@ -13,6 +14,9 @@ impl ExternalServicesConfig { ws_rpc_url: "ws://localhost:8900".to_string(), indexer_url: "http://localhost:8784".to_string(), prover_url: "http://localhost:3001".to_string(), + // derivation: "H7ZzJngDRtAGCV8Y9HwJrMpsxeNZQyYkjxw4GE8YcUG2".to_string(), + derivation: "En9a97stB3Ek2n6Ey3NJwCUJnmTzLMMEA5C69upGDuQP".to_string(), + // derivation: "ALA2cnz41Wa2v2EYUdkYHsg7VnKsbH1j7secM5aiP8k".to_string() } } @@ -22,6 +26,7 @@ impl ExternalServicesConfig { ws_rpc_url: "ws://zk-testnet.helius.dev:8900".to_string(), indexer_url: "https://zk-testnet.helius.dev:8784".to_string(), prover_url: "https://zk-testnet.helius.dev:3001".to_string(), + derivation: "En9a97stB3Ek2n6Ey3NJwCUJnmTzLMMEA5C69upGDuQP".to_string() } } } diff --git a/forester/src/nullifier/nullify.rs b/forester/src/nullifier/nullify.rs index a0542a552a..5fe7ed277b 100644 --- a/forester/src/nullifier/nullify.rs +++ b/forester/src/nullifier/nullify.rs @@ -271,7 +271,7 @@ pub async fn nullify_compressed_account( indices: vec![leaf_index], proofs: vec![proof], authority: config.payer_keypair.pubkey(), - derivation: Pubkey::from_str("En9a97stB3Ek2n6Ey3NJwCUJnmTzLMMEA5C69upGDuQP").unwrap(), + derivation: Pubkey::from_str(&config.external_services.derivation).unwrap(), }); let instructions = [ solana_sdk::compute_budget::ComputeBudgetInstruction::set_compute_unit_limit(1_000_000),