Update zebra-chain/src/orchard/keys.rs
Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
parent
bba99098f3
commit
a73914a838
|
@ -185,7 +185,8 @@ impl FromStr for SpendingKey {
|
||||||
Ok(SpendingKey {
|
Ok(SpendingKey {
|
||||||
network: match hrp.as_str() {
|
network: match hrp.as_str() {
|
||||||
sk_hrp::MAINNET => Network::Mainnet,
|
sk_hrp::MAINNET => Network::Mainnet,
|
||||||
_ => Network::Testnet,
|
sk_hrp::TESTNET => Network::Testnet,
|
||||||
|
_ => Err(SerializationError::Parse("unknown network")),
|
||||||
},
|
},
|
||||||
bytes: decoded_bytes,
|
bytes: decoded_bytes,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue