From ca3a2dc646014fc1a37ce30c2e7d3c7ef1e48504 Mon Sep 17 00:00:00 2001 From: Nikolaus Heger Date: Sat, 18 Apr 2026 12:40:20 +0800 Subject: [PATCH] Fix wormhole derivation path also printing out wormhole address for clarity --- src/collect_rewards_lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/collect_rewards_lib.rs b/src/collect_rewards_lib.rs index 3e39159..8a26610 100644 --- a/src/collect_rewards_lib.rs +++ b/src/collect_rewards_lib.rs @@ -249,15 +249,15 @@ pub async fn collect_rewards( progress: &P, ) -> Result { // Step 1: Derive wormhole address - progress.on_step("derive", "Deriving wormhole address from mnemonic"); - - let path = format!("m/44'/{}/0'/1'/{}'", QUANTUS_WORMHOLE_CHAIN_ID, config.wormhole_index); + let path = format!("m/44'/{}/0'/0'/{}'", QUANTUS_WORMHOLE_CHAIN_ID, config.wormhole_index); let wormhole_secret = derive_wormhole_from_mnemonic(&config.mnemonic, None, &path) .map_err(|e| CollectRewardsError::from(format!("HD derivation failed: {:?}", e)))?; let wormhole_address = AccountId32::from(wormhole_secret.address).to_ss58check(); let secret_hex = hex::encode(wormhole_secret.secret.as_ref()); + progress.on_step("derive", &format!("Derived wormhole address: {}", wormhole_address)); + // Parse destination address let destination_bytes = parse_ss58_address(&config.destination_address)?;