mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
@@ -54,8 +54,7 @@ getNextID(
|
||||
std::uint16_t xferFee)
|
||||
{
|
||||
// Get the nftSeq from the account root of the issuer.
|
||||
std::uint32_t const nftSeq = {
|
||||
env.le(issuer)->at(~sfMintedNFTokens).value_or(0)};
|
||||
std::uint32_t const nftSeq = {env.le(issuer)->at(~sfMintedNFTokens).value_or(0)};
|
||||
return token::getID(env, issuer, nfTokenTaxon, nftSeq, flags, xferFee);
|
||||
}
|
||||
|
||||
@@ -70,10 +69,8 @@ getID(
|
||||
{
|
||||
// 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 xrpl::NFTokenMint::createNFTokenID(
|
||||
flags, xferFee, issuer, nft::toTaxon(nfTokenTaxon), nftSeq);
|
||||
nftSeq += env.le(issuer)->at(~sfFirstNFTokenSequence).value_or(env.seq(issuer));
|
||||
return xrpl::NFTokenMint::createNFTokenID(flags, xferFee, issuer, nft::toTaxon(nfTokenTaxon), nftSeq);
|
||||
}
|
||||
|
||||
Json::Value
|
||||
@@ -87,10 +84,7 @@ burn(jtx::Account const& account, uint256 const& nftokenID)
|
||||
}
|
||||
|
||||
Json::Value
|
||||
createOffer(
|
||||
jtx::Account const& account,
|
||||
uint256 const& nftokenID,
|
||||
STAmount const& amount)
|
||||
createOffer(jtx::Account const& account, uint256 const& nftokenID, STAmount const& amount)
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[sfAccount.jsonName] = account.human();
|
||||
@@ -135,17 +129,13 @@ cancelOfferImpl(jtx::Account const& account, T const& nftokenOffers)
|
||||
}
|
||||
|
||||
Json::Value
|
||||
cancelOffer(
|
||||
jtx::Account const& account,
|
||||
std::initializer_list<uint256> const& nftokenOffers)
|
||||
cancelOffer(jtx::Account const& account, std::initializer_list<uint256> const& nftokenOffers)
|
||||
{
|
||||
return cancelOfferImpl(account, nftokenOffers);
|
||||
}
|
||||
|
||||
Json::Value
|
||||
cancelOffer(
|
||||
jtx::Account const& account,
|
||||
std::vector<uint256> const& nftokenOffers)
|
||||
cancelOffer(jtx::Account const& account, std::vector<uint256> const& nftokenOffers)
|
||||
{
|
||||
return cancelOfferImpl(account, nftokenOffers);
|
||||
}
|
||||
@@ -177,10 +167,7 @@ acceptSellOffer(jtx::Account const& account, uint256 const& offerIndex)
|
||||
}
|
||||
|
||||
Json::Value
|
||||
brokerOffers(
|
||||
jtx::Account const& account,
|
||||
uint256 const& buyOfferIndex,
|
||||
uint256 const& sellOfferIndex)
|
||||
brokerOffers(jtx::Account const& account, uint256 const& buyOfferIndex, uint256 const& sellOfferIndex)
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[sfAccount.jsonName] = account.human();
|
||||
|
||||
Reference in New Issue
Block a user