From 4f83e0a1d2bf17c9c0dd9adee60988955a028a28 Mon Sep 17 00:00:00 2001 From: Josh Hannan Date: Tue, 24 Sep 2024 09:33:47 -0500 Subject: [PATCH] restrict entitlements more --- docs/tutorial/07-marketplace-setup.md | 2 +- docs/tutorial/08-marketplace-compose.md | 2 +- docs/tutorial/10-resources-compose.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/07-marketplace-setup.md b/docs/tutorial/07-marketplace-setup.md index a5829ec..53dd8f4 100644 --- a/docs/tutorial/07-marketplace-setup.md +++ b/docs/tutorial/07-marketplace-setup.md @@ -89,7 +89,7 @@ transaction { // Private reference to this account's minter resource let minterRef: &ExampleNFT.NFTMinter - prepare(acct: auth(SaveValue, Capabilities, BorrowValue) &Account) { + prepare(acct: auth(BorrowValue, SaveValue, StorageCapabilities, PublishCapability) &Account) { // create a new vault instance let vaultA <- ExampleToken.createEmptyVault() diff --git a/docs/tutorial/08-marketplace-compose.md b/docs/tutorial/08-marketplace-compose.md index a4c85a3..19dcb6b 100644 --- a/docs/tutorial/08-marketplace-compose.md +++ b/docs/tutorial/08-marketplace-compose.md @@ -702,7 +702,7 @@ transaction { // but the NFT let temporaryVault: @ExampleToken.Vault - prepare(acct: auth(Capabilities, BorrowValue) &Account) { + prepare(acct: auth(BorrowValue) &Account) { // get the references to the buyer's fungible token Vault and NFT Collection Receiver self.collectionCapability = acct.capabilities.get<&ExampleNFT.Collection>(ExampleNFT.CollectionPublicPath) diff --git a/docs/tutorial/10-resources-compose.md b/docs/tutorial/10-resources-compose.md index ed5af35..8f20482 100644 --- a/docs/tutorial/10-resources-compose.md +++ b/docs/tutorial/10-resources-compose.md @@ -148,7 +148,7 @@ import KittyVerse from 0x06 // This transaction creates a new kitty, creates two new hats and // puts the hats on the cat. Then it stores the kitty in account storage. transaction { - prepare(acct: auth(Storage) &Account) { + prepare(acct: auth(SaveValue) &Account) { // Create the Kitty object let kitty <- KittyVerse.createKitty()