Skip to content

Commit

Permalink
flag renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 committed Oct 30, 2023
1 parent 8ba79b5 commit 7c7ba59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ripple/protocol/LedgerFormats.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ enum LedgerSpecificFlags {
lsfSellNFToken = 0x00000001,

// ltCFTOKEN_ISSUANCE
lsfCFTIsLocked = 0x00000001,
lsfCFTCannotLockBalances = 0x00000002,
lsfCFTLocked = 0x00000001,
lsfCFTCanLock = 0x00000002,
lsfCFTRequireAuth = 0x00000004,
lsfCFTCanEscrow = 0x00000008,
lsfCFTCanTrade = 0x00000010,
Expand Down
6 changes: 3 additions & 3 deletions src/ripple/protocol/TxFlags.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ constexpr std::uint32_t const tfTransferable = 0x00000008;

// CFTokenIssuanceCreate flags:
// NOTE - there is intentionally no flag here for 0x01 because that
// corresponds to lsfCFTIsLocked, which this transaction cannot mutate.
constexpr std::uint32_t const tfCFTCannotLockBalances = lsfCFTCannotLockBalances;
// corresponds to lsfCFTLocked, which this transaction cannot mutate.
constexpr std::uint32_t const tfCFTCanLock = lsfCFTCanLock;
constexpr std::uint32_t const tfCFTRequireAuth = lsfCFTRequireAuth;
constexpr std::uint32_t const tfCFTCanEscrow = lsfCFTCanEscrow;
constexpr std::uint32_t const tfCFTCanTrade = lsfCFTCanTrade;
Expand Down Expand Up @@ -199,7 +199,7 @@ constexpr std::uint32_t tfBridgeModifyMask = ~(tfUniversal | tfClearAccountCreat

// CFTokenIssuanceCreate flags:
constexpr std::uint32_t const tfCFTokenIssuanceCreateMask =
~(tfCFTCannotLockBalances | tfCFTRequireAuth | tfCFTCanEscrow | tfCFTCanTrade | tfCFTCanTransfer | tfCFTCanClawback | tfUniversal);
~(tfCFTCanLock | tfCFTRequireAuth | tfCFTCanEscrow | tfCFTCanTrade | tfCFTCanTransfer | tfCFTCanClawback | tfUniversal);

// clang-format on

Expand Down
2 changes: 1 addition & 1 deletion src/ripple/protocol/impl/LedgerFormats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ LedgerFormats::LedgerFormats()
{sfAssetScale, soeDEFAULT},
{sfMaximumAmount, soeOPTIONAL},
{sfOutstandingAmount, soeREQUIRED},
{sfLockedAmount, soeREQUIRED},
{sfLockedAmount, soeDEFAULT},
{sfCFTokenMetadata, soeOPTIONAL},
},
commonFields);
Expand Down

0 comments on commit 7c7ba59

Please sign in to comment.