[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?


The NftID should be that id.

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