mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 08:17:13 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user