diff --git a/create-listing/create-listing.cdc.tmpl b/create-listing/create-listing.cdc.tmpl index 3ee789f..ff532f2 100644 --- a/create-listing/create-listing.cdc.tmpl +++ b/create-listing/create-listing.cdc.tmpl @@ -33,8 +33,8 @@ transaction(saleItemID: UInt64, saleItemPrice: UFix64, royaltyPercent: UFix64) { // If the user does not have their collection linked to their account, link it. let nftProviderPrivatePath = /private/${NFTContractName}CollectionProviderForNFTStorefront - let hasLinkedCollection = seller. - getCapability<&${NFTContractName}.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>( + let hasLinkedCollection = seller + .getCapability<&${NFTContractName}.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>( nftProviderPrivatePath )!.check() if !hasLinkedCollection { @@ -45,8 +45,8 @@ transaction(saleItemID: UInt64, saleItemPrice: UFix64, royaltyPercent: UFix64) { } // Get a capability to access the user's NFT collection. - self.nftProvider = seller. - getCapability<&${NFTContractName}.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>( + self.nftProvider = seller + .getCapability<&${NFTContractName}.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>( nftProviderPrivatePath )! assert(self.nftProvider.borrow() != nil, message: "Missing or mis-typed collection provider")