From d4d0ec7e9513b021f0edb487a0e93bedce29b5a2 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 1 Aug 2018 14:02:32 -0700 Subject: [PATCH] Update test to pass in required cm to SaplingNotePlaintext::decrypt(). --- src/gtest/test_transaction_builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtest/test_transaction_builder.cpp b/src/gtest/test_transaction_builder.cpp index e3f3655d3..b8fe54466 100644 --- a/src/gtest/test_transaction_builder.cpp +++ b/src/gtest/test_transaction_builder.cpp @@ -56,7 +56,7 @@ TEST(TransactionBuilder, Invoke) // Prepare to spend the note that was just created auto maybe_pt = libzcash::SaplingNotePlaintext::decrypt( - tx1.vShieldedOutput[0].encCiphertext, ivk, tx1.vShieldedOutput[0].ephemeralKey); + tx1.vShieldedOutput[0].encCiphertext, ivk, tx1.vShieldedOutput[0].ephemeralKey, tx1.vShieldedOutput[0].cm); ASSERT_EQ(static_cast(maybe_pt), true); auto maybe_note = maybe_pt.get().note(ivk); ASSERT_EQ(static_cast(maybe_note), true);