From cc6a8528aefb79604c6802d074e0f0c36506bfa6 Mon Sep 17 00:00:00 2001 From: Faye Hall Date: Wed, 3 Sep 2025 16:06:06 -0400 Subject: [PATCH] Changed ExampleNFT to IntermediateNFT Fixed the typo ExampleNFT to IntermediateNFT --- docs/tutorial/08-marketplace-compose.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/08-marketplace-compose.md b/docs/tutorial/08-marketplace-compose.md index d7982aa4..6a424bd2 100644 --- a/docs/tutorial/08-marketplace-compose.md +++ b/docs/tutorial/08-marketplace-compose.md @@ -168,7 +168,7 @@ To define and initialize: 1. In it, add a variable to store a capability for the owner's collection with the ability to withdraw from the collection: ```cadence - access(self) let ownerCollection: Capability + access(self) let ownerCollection: Capability ``` :::info[Reminder] @@ -204,7 +204,7 @@ With the marketplace contract, we are utilizing a new feature of capabilities We stored two different capabilities in the marketplace sale collection: ```cadence -access(self) var ownerCollection: Capability +access(self) var ownerCollection: Capability access(account) let ownerVault: Capability<&{ExampleToken.Receiver}> ``` @@ -509,7 +509,7 @@ That's it! You've completed the contract needed to allow anyone who owns the NFT This marketplace contract has methods to add and remove NFTs, but instead of storing the NFT resource object in the sale collection, the user provides a capability to their main collection that allows the listed NFT to be withdrawn and transferred when it is purchased. When a user wants to put their NFT up for sale, they do so by providing the ID and the price to the `listForSale()` function. -Then, another user can call the `purchase()` function, sending an `ExampleToken.Vault` that contains the currency they are using to make the purchase. The buyer also includes a capability to their NFT `ExampleNFT.Collection` so that the purchased token can be immediately deposited into their collection when the purchase is made. +Then, another user can call the `purchase()` function, sending an `ExampleToken.Vault` that contains the currency they are using to make the purchase. The buyer also includes a capability to their NFT `IntermediateNFT.Collection` so that the purchased token can be immediately deposited into their collection when the purchase is made. The owner of the sale saves a capability to their Fungible Token `Receiver` within the sale. This allows the sale resource to be able to immediately deposit the currency that was used to buy the NFT into the owners `Vault` when a purchase is made.