mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
fix: Fail to deduplicate the same nfts in ttNFTOKEN_CANCEL_OFFER (#1542)
This commit is contained in:
@@ -758,7 +758,7 @@ CreateCancelNFTOffersTxWithMetadata(
|
||||
tx.setFieldAmount(ripple::sfFee, amount);
|
||||
tx.setFieldU32(ripple::sfSequence, seq);
|
||||
ripple::STVector256 offers;
|
||||
offers.resize(2);
|
||||
offers.resize(nftOffers.size());
|
||||
std::transform(nftOffers.cbegin(), nftOffers.cend(), offers.begin(), [&](auto const& nftId) {
|
||||
return ripple::uint256{nftId.c_str()};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user