[Cadence] Storefront contract, and NFT data

Hey guys,

I am looking into NFTStorefront, and listing events (ListingAvailable, ListingCompleted). I can get the return values of the ListingAvailable event, for example. It contains the ListingResourceID, and the nftID, but none of these IDs are what is required for the CollectonPublic interface, borrowNFT() method.in the NonFungibleToken contract to get an NFT’s data.

Am I missing something? Or, to ask the question from a different perspective: how do I get an NFT based on the ListingAvailable interface’s return datas?

Robert

1 Like

The NftID should be that id.

1 Like

Thanks bjartek, after a couple of days of digging, the nftID does work. I don’t know why it didn’t before.

1 Like