Account_info add flags (#812)

Fixes #768
This commit is contained in:
cyan317
2023-08-04 16:22:39 +01:00
committed by GitHub
parent 4d42cb3cdb
commit d61d702ccd
10 changed files with 364 additions and 73 deletions

View File

@@ -729,3 +729,14 @@ CreateCreateNFTOfferTxWithMetadata(
ret.metadata = metaObj.getSerializer().peekData();
return ret;
}
ripple::STObject
CreateAmendmentsObject(std::vector<ripple::uint256> const& enabledAmendments)
{
auto amendments = ripple::STObject(ripple::sfLedgerEntry);
amendments.setFieldU16(ripple::sfLedgerEntryType, ripple::ltAMENDMENTS);
amendments.setFieldU32(ripple::sfFlags, 0);
ripple::STVector256 list(enabledAmendments);
amendments.setFieldV256(ripple::sfAmendments, list);
return amendments;
}