Skip to content

[BUG] Incorrect function name hasListingBecomeGhosted #85

Open
@LanfordCai

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions