From ac56d0bf720f991c32edb3bae82bf5cbd1752485 Mon Sep 17 00:00:00 2001 From: Cryptoforge Date: Mon, 21 Sep 2020 15:56:54 -0700 Subject: [PATCH] fix key constants --- lib/src/lightclient.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 7f4bc38..5a18754 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -328,7 +328,7 @@ impl LightClientConfig { } pub fn hrp_sapling_private_key(&self) -> &str { - match &self.address_params.hrp_sapling_extended_full_viewing_key { + match &self.address_params.hrp_sapling_extended_spending_key { Some(s) => s, None => match &self.chain_name[..] { @@ -341,7 +341,7 @@ impl LightClientConfig { } pub fn hrp_sapling_viewing_key(&self) -> &str { - match &self.address_params.hrp_sapling_extended_spending_key { + match &self.address_params.hrp_sapling_extended_full_viewing_key { Some(s) => s, None => match &self.chain_name[..] {