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:29:23 -04:00 committed by Deirdre Connolly
parent a73914a838
commit bbb6b341ae
1 changed files with 1 additions and 1 deletions

View File

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