Orchard: fix into() call inside extract_x

This commit is contained in:
Deirdre Connolly 2021-03-15 02:21:41 -04:00 committed by Deirdre Connolly
parent 94edc90975
commit 1c903cab0f
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ impl NoteCommitment {
///
/// https://zips.z.cash/protocol/protocol.pdf#concreteextractorpallas
pub fn extract_x(&self) -> pallas::Base {
match self.0.get_xy().into {
match self.0.get_xy().into() {
// If Some, it's not the identity.
Some((x, _)) => x,
_ => pallas::Base::zero(),