Fix test logic error: buy offer should exist after creation regardless of amendment

Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-21 13:41:24 +00:00
committed by Mayukha Vadari
parent be5d105f07
commit 41bfa3819c

View File

@@ -6051,8 +6051,8 @@ class NFTokenBaseUtil_test : public beast::unit_test::suite
token::expiration(expiration)); // Also expired
env.close();
std::size_t expectedBuyerCount = amendmentEnabled ? 0 : 1;
BEAST_EXPECT(ownerCount(env, buyer) == expectedBuyerCount);
// After creating buy offer, it should exist regardless of amendment
BEAST_EXPECT(ownerCount(env, buyer) == 1);
// Try to accept the expired buy offer
env(token::acceptBuyOffer(issuer, buyOfferIndex), ter(tecEXPIRED));