TransactionSEALED
*~□#&%╳!*$~╱~○*&!◆■$&&*▓^$*░?▓^●~^^▫○*▪╳^◆╱▫#○@□▓█%▓&*█*◆░■◆◆█□$
Transaction ID
Execution Fee
0.00062 FLOWPayer
Proposer
Execution Error
Error Code: 1101
panic: Account does not store an object at the specified path
Error ContextLine 49
44
45
46 // borrow a reference to the NFTMinter resource in storage
47 self.nftMinter = minter.storage.borrow<&KARATKD026SBT.NFTMinter>(from: KARATKD026SBT.AdminStoragePath)
48 ?? panic("Account does not store an object at the specified path")
49 }
50
51 execute {
52
53 let metadata=KARATKD026SBT.Metadata(name: name, artist: artist, artistAddress: artistAddress, description: description, type: typeID, serialId: 1, royalty: royalty)
54 // Mint the NFT and deposit it to the recipient's collectionCall Stack
→
Raw Error
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: panic: Account does not store an object at the specified path --> c3914cbc951436fe8d2da9e6b41219f833526df25548f8e56cadb316fab2cbcc:49:11 | 49 | ?? panic("Account does not store an object at the specified path") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.
Transaction Summary
Contract Call
Called NonFungibleToken, MetadataViews, KARATKD026SBT +2 more
Script Arguments
Copy:
0amountUFix64
0.00000000
1nameString
【Quiz master 2025】★
2artistString
JOSHIN
3artistAddressAddress
4descriptionString
5royaltyUFix64
0.00000000
6typeIDString
lJvrA0HcqOFJphMe2cW8
Cadence Script
1/// transactions/nft/buy.cdc
2
3import NonFungibleToken from 0x1d7e57aa55817448
4import MetadataViews from 0x1d7e57aa55817448
5import KARATKD026SBT from 0x79fee68789403899
6import FungibleToken from 0xf233dcee88fe0abe
7import FungibleTokenMetadataViews from 0xf233dcee88fe0abe
8
9
10transaction(amount: UFix64, name: String, artist: String, artistAddress: Address, description: String, royalty: UFix64, typeID: String) {
11
12
13 let nftMinter: &KARATKD026SBT.NFTMinter
14 /// Reference to the buyer's collection
15 let buyerRecipientCollectionRef: &{NonFungibleToken.Receiver}
16
17
18 prepare(
19 minter: auth(BorrowValue) &Account,
20 seller: auth(BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue) &Account,
21 buyer: auth(BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue, UnpublishCapability) &Account)
22 {
23
24 let collectionData = KARATKD026SBT.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?
25 ?? panic("ViewResolver does not resolve NFTCollectionData view")
26
27 // enable buyer nft
28 if buyer.storage.borrow<&KARATKD026SBT.Collection>(from: collectionData.storagePath) == nil {
29 // Create a new empty collection
30 let collection <- KARATKD026SBT.createEmptyCollection(nftType: Type<@KARATKD026SBT.NFT>())
31
32 // save it to the account
33 buyer.storage.save(<-collection, to: collectionData.storagePath)
34
35 // create a public capability for the collection
36 buyer.capabilities.unpublish(collectionData.publicPath)
37 let collectionCap = buyer.capabilities.storage.issue<&KARATKD026SBT.Collection>(collectionData.storagePath)
38 buyer.capabilities.publish(collectionCap, at: collectionData.publicPath)
39 }
40
41 // Borrow the recipient's public NFT collection reference
42 self.buyerRecipientCollectionRef = getAccount(buyer.address).capabilities.borrow<&{NonFungibleToken.Receiver}>(collectionData.publicPath)
43 ?? panic("Could not get receiver reference to the buyer's NFT Collection")
44
45
46 // borrow a reference to the NFTMinter resource in storage
47 self.nftMinter = minter.storage.borrow<&KARATKD026SBT.NFTMinter>(from: KARATKD026SBT.AdminStoragePath)
48 ?? panic("Account does not store an object at the specified path")
49 }
50
51 execute {
52
53 let metadata=KARATKD026SBT.Metadata(name: name, artist: artist, artistAddress: artistAddress, description: description, type: typeID, serialId: 1, royalty: royalty)
54 // Mint the NFT and deposit it to the recipient's collection
55 self.nftMinter.mintNFT(recipient: self.buyerRecipientCollectionRef, metadata: metadata)
56 }
57}