MarketplaceSEALED
╱╲●○□^!▒◇╲□▓■○○╳╱╳$█^╱$▓▒╲╳○◇~█▒^%!#▓@!■^╳?█$▫▓■○$$■□╲▓□░○*╲╳○▓╳
Transaction ID
Execution Fee
0.00138 FLOWScript Arguments
0listingResourceIDUInt64
4398049017724
Cadence Script
1// transactions/nft-storefront/remove_item.cdc
2
3import NFTStorefrontV2 from 0x4eb8a10cb9f87357
4
5/// Transaction to facilitate the removal of listing by the listing owner. Listing owner should provide the
6/// `listingResourceID` that needs to be removed.
7///
8transaction(listingResourceID: UInt64) {
9
10 let storefront: auth(NFTStorefrontV2.RemoveListing) &{NFTStorefrontV2.StorefrontManager}
11
12 prepare(acct: auth(BorrowValue) &Account) {
13 self.storefront = acct.storage.borrow<auth(NFTStorefrontV2.RemoveListing) &NFTStorefrontV2.Storefront>(
14 from: NFTStorefrontV2.StorefrontStoragePath
15 ) ?? panic("The signer does not store an NFT Storefront V2 object at the path \(NFTStorefrontV2.StorefrontStoragePath). "
16 .concat("The signer must initialize their account with this vault first!"))
17 }
18
19 execute {
20 self.storefront.removeListing(listingResourceID: listingResourceID)
21 }
22}