TransactionSEALED
%^%◆□●■●□╱▪○@~@█■?&!▫▪□&▓^●◆╳▒●□◆^@!$▓$╳&□▫○█○●▓■^&▒▒●░╱$■●■*▒□█
Transaction ID
Execution Error
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: panic: Could not get receiver reference to the NFT Collection --> 00f01842b812991b9a6648c52b2bccbe8676f3b0186a697e7b94192c12d36d01:30:62 | 30 | collectionData.publicPath) ?? panic("Could not get receiver reference to the NFT Collection")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.
Transaction Summary
Contract CallCalled LNVCT, NonFungibleToken, MetadataViews
Contracts
Script Arguments
0linkString
https://livevct.com/token/15e4a951-7315-4ca9-b6ac-283712ec2dec/1
1batchUInt32
50582734
2sequenceUInt16
1
3limitUInt16
1
4nameString
The Queens of R&B: Xscape & SWV | Jun 27 2024
5descriptionString
Live Nation Virtual Commemorative Ticket for The Queens of R&B: Xscape & SWV at Toyota Pavilion at Concord, Concord, CA on Thursday, June 27 2024
6thumbnailString
https://cdn.live-nfts.com/web/files/608177d6e9b6cc37f94f3ef8/49a94418-b5d0-4bf8-bfd3-d10a69180923-face.png
7editionNumberUInt64
0
8metadata{String
{
"ARTIST_NAMES": "Xscape|SWV|Mya|Total|702",
"SERIAL_NUMBER": "B57D68B",
"EVENT_TIME": "2024-06-28T02:00:00Z",
"TICKET_ROW": "GDD",
"TICKET_SEAT": "DPG",
"TICKET_SEC": "LAWN3",
"VENUE_LOCATION": "Concord, California",
"VENUE_NAME": "Toyota Pavilion at Concord",
"VENUE_TIMEZONE": "America/Los_Angeles",
"NUMBER": "1168"
}9addressAddress
Cadence Script
1import LNVCT from 0x1e3c78c6d580273b
2 import NonFungibleToken from 0x1d7e57aa55817448
3 import MetadataViews from 0x1d7e57aa55817448
4
5
6 transaction(link: String, batch: UInt32, sequence: UInt16, limit: UInt16, name:String, description:String,thumbnail:String,editionNumber: UInt64, metadata:{String:String},address:Address) {
7
8 /// local variable for storing the minter reference
9 let minter: &LNVCT.NFTMinter
10
11 /// Reference to the receiver's collection
12 let recipientCollectionRef: &{NonFungibleToken.Receiver}
13
14
15 prepare(signer: auth(BorrowValue) &Account) {
16
17 let collectionData = LNVCT.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?
18 ?? panic("ViewResolver does not resolve NFTCollectionData view")
19
20 // borrow a reference to the NFTMinter resource in storage
21 self.minter = signer.storage.borrow<&LNVCT.NFTMinter>(from: LNVCT.MinterStoragePath)
22 ?? panic("Account does not store an object at the specified path")
23 //let recipient = getAccount(address)
24
25 let recipient = address
26
27 // Borrow the recipient's public NFT collection reference
28 var cap = (getAccount(recipient).capabilities.borrow<&AnyResource>(
29 collectionData.publicPath) ?? panic("Could not get receiver reference to the NFT Collection"))
30 self.recipientCollectionRef = cap as! &{NonFungibleToken.Receiver}
31
32 }
33 execute {
34
35 // Create a new NFT
36 let newNFT <- self.minter.mintNFT(glink: link, gbatch: batch, glimit: limit, gsequence: sequence,name:name, description: description, thumbnail:thumbnail, editionNumber: editionNumber, metadata:metadata)
37
38 self.recipientCollectionRef.deposit(token: <- newNFT)
39
40 }
41 }