Skip to content

Case where no NftRoyalties value is returned#

Informational

Fixed

Code was changed to retrieve the nftRoyalties value.

Concerning the getRoyalties function in the RoyaltiesRegistry contract:

If royaltiesSetCollection is cached but royaltiesSetNFT is not cached then there is no check for royaltiesSetNFT and it is set to no royalties.

This may be the intended behavior.

The code:

if (royaltiesSetNFT.initialized) {
    nftRoyalties = royaltiesSetNFT.royalties;
}

if (royaltiesSetNFT.initialized || royaltiesSetCollection.initialized ) {
    return (nftRoyalties, collectionRoyalties);
}