From 6dece25cc305844e6ce15cd5efd0838ba60adca3 Mon Sep 17 00:00:00 2001 From: yinyiqian1 Date: Mon, 8 Dec 2025 17:34:20 -0500 Subject: [PATCH] fix test failure --- src/test/app/MPToken_test.cpp | 3 ++- src/test/jtx/impl/mpt.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/app/MPToken_test.cpp b/src/test/app/MPToken_test.cpp index 7d0126bd65..a10de70f13 100644 --- a/src/test/app/MPToken_test.cpp +++ b/src/test/app/MPToken_test.cpp @@ -571,7 +571,8 @@ class MPToken_test : public beast::unit_test::suite .err = temINVALID_FLAG}); if (!features[featureSingleAssetVault] && - !features[featureDynamicMPT]) + !features[featureDynamicMPT] && + !features[featureConfidentialTransfer]) { // test invalid flags - nothing is being changed mptAlice.set( diff --git a/src/test/jtx/impl/mpt.cpp b/src/test/jtx/impl/mpt.cpp index cc8f7f51e1..1cc2fcba40 100644 --- a/src/test/jtx/impl/mpt.cpp +++ b/src/test/jtx/impl/mpt.cpp @@ -18,6 +18,7 @@ ripple::Buffer generatePlaceholderCiphertext() { Buffer buf(ecGamalEncryptedTotalLength); + std::memset(buf.data(), 0, ecGamalEncryptedTotalLength); buf.data()[0] = 0x02; buf.data()[ecGamalEncryptedLength] = 0x02;