Skip to content

Commit 4a11fde

Browse files
committed
chore: Fix compilation due to use of std::ranges::mismatch
1 parent af73671 commit 4a11fde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/etl/NFTHelpers.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ getNFTokenMintData(ripple::TxMeta const& txMeta, ripple::STTx const& sttx)
142142

143143
// There should always be a difference so the returned finalIDs
144144
// iterator should never be end(). But better safe than sorry.
145-
if (finalIDs.size() != prevIDs.size() + 1 || diff.first == finalIDs.end() || !owner) {
145+
if (finalIDs.size() != prevIDs.size() + 1 || diff.in1 == finalIDs.end() || !owner) {
146146
throw std::runtime_error(
147147
fmt::format(" - unexpected NFTokenMint data in tx {}", strHex(sttx.getTransactionID()))
148148
);
149149
}
150150

151151
return {
152-
{NFTTransactionsData(*diff.first, txMeta, sttx.getTransactionID())},
153-
NFTsData(*diff.first, *owner, sttx.getFieldVL(ripple::sfURI), txMeta)
152+
{NFTTransactionsData(*diff.in1, txMeta, sttx.getTransactionID())},
153+
NFTsData(*diff.in1, *owner, sttx.getFieldVL(ripple::sfURI), txMeta)
154154
};
155155
}
156156

0 commit comments

Comments
 (0)