From 687bd96cbdbb7ab12451e073f5dc379dc4398804 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 17 Jul 2018 14:26:38 -0700 Subject: [PATCH] Minor update to address nits in review. --- src/gtest/test_noteencryption.cpp | 6 +++--- src/zcash/Note.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gtest/test_noteencryption.cpp b/src/gtest/test_noteencryption.cpp index 8c7a1cb48..9fa7c466f 100644 --- a/src/gtest/test_noteencryption.cpp +++ b/src/gtest/test_noteencryption.cpp @@ -23,9 +23,9 @@ public: TEST(noteencryption, NotePlaintext) { using namespace libzcash; - auto sk = SaplingSpendingKey(uint256()).expanded_spending_key(); - auto vk = sk.full_viewing_key(); - auto ivk = vk.in_viewing_key(); + auto xsk = SaplingSpendingKey(uint256()).expanded_spending_key(); + auto fvk = xsk.full_viewing_key(); + auto ivk = fvk.in_viewing_key(); SaplingPaymentAddress addr = *ivk.address({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}); std::array memo; diff --git a/src/zcash/Note.cpp b/src/zcash/Note.cpp index 42df3bf2e..148fe8553 100644 --- a/src/zcash/Note.cpp +++ b/src/zcash/Note.cpp @@ -152,7 +152,7 @@ SaplingNotePlaintext::SaplingNotePlaintext( boost::optional SaplingNotePlaintext::note(const SaplingIncomingViewingKey& ivk) const { - auto addr = ivk.address( d ); + auto addr = ivk.address(d); if (addr) { return SaplingNote(d, addr.get().pk_d, value_, rcm); } else {