XRPLF / xrpl-dev-portal

Source code for xrpl.org including developer documentation
https://xrpl.org
Other
512 stars 1k forks source link

NFT doc discrepancies #1487

Closed mDuo13 closed 1 year ago

mDuo13 commented 1 year ago

As originally reported by @Silkjaer:

https://xrpl.org/nftokenpage.html - Example uses Tokens for the page content, the documentation uses NonFungibleTokens, but the actual key is NFTokens – also the example content is a bit off, as it's actually an array like the screenshot attached screenshot

There is a discrepancy between https://github.com/XRPLF/XRPL-Standards/discussions/46 and https://xrpl.org/nftokenoffer.html regarding the flag of an NFTokenOffer 0x00000001. Documentation says its a lsfBuyToken flag and if not set, it's a sell offer. XLS20 says the exact opposite, its a lsfSellToken. LedgerFormats.h says its a lsfSellNFToken (so updated to NFToken naming convention and agrees with standard, but not documentation. But what is the flag actually?

On the same page, documentation refers to lsfAuthorized which i think is not part of the implemententation?

https://xrpl.org/nftokencanceloffer.html refers to TokenOffers but should be NFTokenOffers

Silkjaer commented 1 year ago

Elaborating on the original post, I have made a more thorough walkthrough of the documentation related to NFTokens and here's an updated list organized by page:

https://xrpl.org/nftoken.html

https://xrpl.org/nftokenoffer.html

https://xrpl.org/nftokenpage.html

https://xrpl.org/nftokenacceptoffer.html

https://xrpl.org/nftokencanceloffer.html

https://xrpl.org/nftokencreateoffer.html

https://xrpl.org/nftokenmint.html

mDuo13 commented 1 year ago

Just checked, and all of the issues have been addressed by https://github.com/XRPLF/xrpl-dev-portal/pull/1510