Update zebra-chain/src/orchard/keys.rs

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Deirdre Connolly 2021-03-18 10:27:53 -04:00 committed by Deirdre Connolly
parent e4fe8bb320
commit e2989e3edf
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ impl fmt::Display for IncomingViewingKey {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let hrp = match self.network {
Network::Mainnet => ivk_hrp::MAINNET,
_ => ivk_hrp::TESTNET,
Network::Testnet => ivk_hrp::TESTNET,
};
bech32::encode_to_fmt(f, hrp, &self.scalar.to_bytes().to_base32(), Variant::Bech32).unwrap()