Implement nextgen nft_info handler (#558)

Fixing #557
This commit is contained in:
Alex Kremer
2023-03-27 11:50:13 +01:00
committed by GitHub
parent 1bb67217e5
commit 95da706fed
7 changed files with 710 additions and 3 deletions

View File

@@ -420,3 +420,19 @@ CreateDepositPreauthLedgerObject(
depositPreauth.setFieldU32(ripple::sfPreviousTxnLgrSeq, 0);
return depositPreauth;
}
Backend::NFT
CreateNFT(
std::string_view tokenID,
std::string_view account,
ripple::LedgerIndex seq,
ripple::Blob uri,
bool isBurned)
{
return Backend::NFT{
ripple::uint256(tokenID),
seq,
GetAccountIDWithString(account),
uri,
isBurned};
}