Clean up wallet unit tests: replace .value() with .get() for clarity.

This is to avoid confusion with note.value().
This commit is contained in:
Simon 2018-08-08 11:04:35 -07:00
parent 58a1224d63
commit 3c3d1f0a38
1 changed files with 7 additions and 7 deletions

View File

@ -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();