diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2024-10-01 15:30:30 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2024-10-01 15:30:30 -0400 |
| commit | 83dd5152e6d115426afbb57a94a832ec91b58a46 (patch) | |
| tree | e0685979542aed3ec92b2fe828be15b4ead7564f /tests/unit_tests | |
| parent | b089f9ee69924882c5d14dd1a6991deb05d9d1cd (diff) | |
| parent | 65568d3a884857ce08d1170f5801a6891a5c187c (diff) | |
| download | monzero-core-83dd5152e6d115426afbb57a94a832ec91b58a46.tar.gz monzero-core-83dd5152e6d115426afbb57a94a832ec91b58a46.tar.xz monzero-core-83dd5152e6d115426afbb57a94a832ec91b58a46.zip | |
Merge pull request #9462
65568d3 build: fix build with Boost 1.85 and remove instances of viewkey logging [RELEASE] (jeffro256)
Diffstat (limited to 'tests/unit_tests')
| -rw-r--r-- | tests/unit_tests/crypto.cpp | 2 | ||||
| -rw-r--r-- | tests/unit_tests/multisig.cpp | 2 | ||||
| -rw-r--r-- | tests/unit_tests/serialization.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit_tests/crypto.cpp b/tests/unit_tests/crypto.cpp index 7f926534a..329992463 100644 --- a/tests/unit_tests/crypto.cpp +++ b/tests/unit_tests/crypto.cpp @@ -72,10 +72,10 @@ TEST(Crypto, Ostream) EXPECT_TRUE(is_formatted<crypto::hash8>()); EXPECT_TRUE(is_formatted<crypto::hash>()); EXPECT_TRUE(is_formatted<crypto::public_key>()); - EXPECT_TRUE(is_formatted<crypto::secret_key>()); EXPECT_TRUE(is_formatted<crypto::signature>()); EXPECT_TRUE(is_formatted<crypto::key_derivation>()); EXPECT_TRUE(is_formatted<crypto::key_image>()); + EXPECT_TRUE(is_formatted<rct::key>()); } TEST(Crypto, null_keys) diff --git a/tests/unit_tests/multisig.cpp b/tests/unit_tests/multisig.cpp index 3b3c4197c..71416aaf3 100644 --- a/tests/unit_tests/multisig.cpp +++ b/tests/unit_tests/multisig.cpp @@ -80,7 +80,7 @@ static void make_wallet(unsigned int idx, tools::wallet2 &wallet) wallet.generate("", "", spendkey, true, false); ASSERT_TRUE(test_addresses[idx].address == wallet.get_account().get_public_address_str(cryptonote::TESTNET)); wallet.decrypt_keys(""); - ASSERT_TRUE(test_addresses[idx].spendkey == epee::string_tools::pod_to_hex(wallet.get_account().get_keys().m_spend_secret_key)); + ASSERT_TRUE(test_addresses[idx].spendkey == epee::string_tools::pod_to_hex(unwrap(unwrap(wallet.get_account().get_keys().m_spend_secret_key)))); wallet.encrypt_keys(""); } catch (const std::exception &e) diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp index 0fdd83285..fdf603272 100644 --- a/tests/unit_tests/serialization.cpp +++ b/tests/unit_tests/serialization.cpp @@ -1103,7 +1103,7 @@ TEST(Serialization, portability_signed_tx) ASSERT_TRUE(ptx.selected_transfers.front() == 2); // ptx.{key_images, tx_key} ASSERT_TRUE(ptx.key_images == "<6c3cd6af97c4070a7aef9b1344e7463e29c7cd245076fdb65da447a34da3ca76> "); - ASSERT_TRUE(epee::string_tools::pod_to_hex(ptx.tx_key) == "0100000000000000000000000000000000000000000000000000000000000000"); + ASSERT_TRUE(epee::string_tools::pod_to_hex(unwrap(unwrap(ptx.tx_key))) == "0100000000000000000000000000000000000000000000000000000000000000"); // ptx.dests ASSERT_TRUE(ptx.dests.size() == 1); ASSERT_TRUE(ptx.dests[0].amount == 1400000000000); |
