From 3c3d1f0a3835a2035d221a37d31df0defc654fd5 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 8 Aug 2018 11:04:35 -0700 Subject: [PATCH] Clean up wallet unit tests: replace .value() with .get() for clarity. This is to avoid confusion with note.value(). --- src/wallet/gtest/test_wallet.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wallet/gtest/test_wallet.cpp b/src/wallet/gtest/test_wallet.cpp index 350764cbf..c89cfc921 100644 --- a/src/wallet/gtest/test_wallet.cpp +++ b/src/wallet/gtest/test_wallet.cpp @@ -356,7 +356,7 @@ TEST(WalletTests, SetSaplingNoteAddrsInCWalletTx) { auto ivk = fvk.in_viewing_key(); libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree tree; tree.append(cm); auto anchor = tree.root(); @@ -477,7 +477,7 @@ TEST(WalletTests, FindMySaplingNotes) { // Generate dummy Sapling note libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree tree; tree.append(cm); auto anchor = tree.root(); @@ -615,7 +615,7 @@ TEST(WalletTests, GetConflictedSaplingNotes) { // Generate note A libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree saplingTree; saplingTree.append(cm); auto anchor = saplingTree.root(); @@ -778,7 +778,7 @@ TEST(WalletTests, SaplingNullifierIsSpent) { // Generate dummy Sapling note libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree tree; tree.append(cm); auto anchor = tree.root(); @@ -873,7 +873,7 @@ TEST(WalletTests, NavigateFromSaplingNullifierToNote) { // Generate dummy Sapling note libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree saplingTree; saplingTree.append(cm); auto anchor = saplingTree.root(); @@ -1007,7 +1007,7 @@ TEST(WalletTests, SpentSaplingNoteIsFromMe) { // Generate Sapling note A libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree saplingTree; saplingTree.append(cm); auto anchor = saplingTree.root(); @@ -1704,7 +1704,7 @@ TEST(WalletTests, UpdatedSaplingNoteData) { // Generate dummy Sapling note libzcash::SaplingNote note(pk, 50000); - auto cm = note.cm().value(); + auto cm = note.cm().get(); SaplingMerkleTree saplingTree; saplingTree.append(cm); auto anchor = saplingTree.root();