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:28:53 -04:00 committed by Deirdre Connolly
parent bba99098f3
commit a73914a838
1 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,8 @@ impl FromStr for SpendingKey {
Ok(SpendingKey {
network: match hrp.as_str() {
sk_hrp::MAINNET => Network::Mainnet,
_ => Network::Testnet,
sk_hrp::TESTNET => Network::Testnet,
_ => Err(SerializationError::Parse("unknown network")),
},
bytes: decoded_bytes,
})