refactor: retire/remove NFT amendments (#5971)

Amendments activated for more than 2 years can be retired, and obsolete retirements that were never activated can also be removed after 2 years. This change retires the NonFungibleTokensV1_1, fixNonFungibleTokensV1_2, and fixNFTokenRemint amendments, and removes the NonFungibleTokensV1, fixNFTokenNegOffer, and fixNFTokenDirV1 amendments.
This commit is contained in:
Jingchen
2025-11-03 18:43:57 +00:00
committed by GitHub
parent 8ac8a47c99
commit 63a08560ca
18 changed files with 397 additions and 1307 deletions

View File

@@ -87,14 +87,10 @@ getID(
std::uint16_t flags,
std::uint16_t xferFee)
{
if (env.current()->rules().enabled(fixNFTokenRemint))
{
// If fixNFTokenRemint is enabled, we must add issuer's
// FirstNFTokenSequence to offset the starting NFT sequence number.
nftSeq += env.le(issuer)
->at(~sfFirstNFTokenSequence)
.value_or(env.seq(issuer));
}
// We must add issuer's FirstNFTokenSequence to offset the starting NFT
// sequence number.
nftSeq +=
env.le(issuer)->at(~sfFirstNFTokenSequence).value_or(env.seq(issuer));
return ripple::NFTokenMint::createNFTokenID(
flags, xferFee, issuer, nft::toTaxon(nfTokenTaxon), nftSeq);
}