[BUG] Incorrect function name hasListingBecomeGhosted
#85
Open
Description
Current Behavior
/// hasListingBecomeGhosted
/// Tells whether listed NFT is present in provided capability.
/// If it returns `false` then it means listing becomes ghost or sold out.
pub fun hasListingBecomeGhosted(): Bool {
if let providerRef = self.nftProviderCapability.borrow() {
let availableIDs = providerRef.getIDs()
return availableIDs.contains(self.details.nftID)
}
return false
}
If this function returns false
then it means listing becomes ghost or sold out.
Expected Behavior
But the name of the function is hasListingBecomeGhosted
... Intuitively, it should return TRUE
rather than FALSE
when the listing has become ghosted or sold out.
Metadata
Assignees
Labels
No labels