Skip to content

Commit

Permalink
Lint tx
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Dec 10, 2024
1 parent 87f6fe6 commit d703013
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cadence/transactions/create_nft_listing.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -31,13 +31,13 @@ transaction {
// Retrieve and verify the ExampleNFT Collection capability
let nftProviderCap = signer.capabilities.get<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>(
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
Expand Down

0 comments on commit d703013

Please sign in to comment.