From d703013ace56c8a0505e46804c719670f05bee29 Mon Sep 17 00:00:00 2001 From: Lea Lobanov Date: Tue, 10 Dec 2024 18:01:58 +0400 Subject: [PATCH] Lint tx --- cadence/transactions/create_nft_listing.cdc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cadence/transactions/create_nft_listing.cdc b/cadence/transactions/create_nft_listing.cdc index 4d7597d..1629ce8 100644 --- a/cadence/transactions/create_nft_listing.cdc +++ b/cadence/transactions/create_nft_listing.cdc @@ -9,11 +9,11 @@ transaction { let tokenReceiver: Capability<&{FungibleToken.Receiver}> prepare(signer: auth(Storage, Capabilities) &Account) { - // Retrieve the storefront capability using the public path + // Retrieve the storefront capability let storefrontCap = signer.capabilities.get<&NFTStorefront.Storefront>( NFTStorefront.StorefrontPublicPath - ) ?? panic("Cannot find storefront capability") - + ) + // Borrow the resource from the capability self.storefront = storefrontCap.borrow() ?? panic("Cannot borrow storefront resource") @@ -31,13 +31,13 @@ transaction { // Retrieve and verify the ExampleNFT Collection capability let nftProviderCap = signer.capabilities.get( ExampleNFT.CollectionPublicPath - ) ?? panic("Missing or mis-typed ExampleNFT.Collection capability") + ) self.exampleNFTProvider = nftProviderCap // Retrieve and verify the FungibleToken receiver capability let tokenReceiverCap = signer.capabilities.get<&{FungibleToken.Receiver}>( /public/MainReceiver - ) ?? panic("Missing or mis-typed FlowToken receiver") + ) self.tokenReceiver = tokenReceiverCap // Create a sale cut