TransactionSEALED
▪!▫◆▪◆░▒◆◆○◆%$#$▒○%▫╱╱?○!▫?▒#╲□╱@░▪!░*○▒%○■╱▪█&~□░▒~◇◆▪▓~○●^▒╲~#
Transaction ID
Execution Error
Error Code: 1007
checking sequence number failed: [Error Code: 1007] invalid proposal key: public key 0 on account 821778140b0d29e9 has sequence number 8594, but given 8593
Raw Error
[Error Code: 1007] error caused by: 1 error occurred: * checking sequence number failed: [Error Code: 1007] invalid proposal key: public key 0 on account 821778140b0d29e9 has sequence number 8594, but given 8593
Transaction Summary
Transaction
Script Arguments
Copy:
0amountUFix64
0.00000000
1nameString
冬空大和 2日目〜手作りの夜〜
2artistString
AIICO
3artistAddressAddress
4descriptionString
いよいよチョコ作り!あなたへの想いも一緒
5royaltyUFix64
0.00000000
6typeIDString
BrkwHrP8a832jQjsgqCT
Cadence Script
1/// transactions/mint_v2.cdc
2
3import FungibleToken from 0xf233dcee88fe0abe
4import FungibleTokenMetadataViews from 0xf233dcee88fe0abe
5import NonFungibleToken from 0x1d7e57aa55817448
6import MetadataViews from 0x1d7e57aa55817448
7
8
9import KARATDN9JISBT from 0x821778140b0d29e9
10
11
12
13transaction(
14 amount: UFix64,
15 name: String,
16 artist: String,
17 artistAddress: Address,
18 description: String,
19 royalty: UFix64,
20 typeID: String
21) {
22
23
24 let nftMinter: &KARATDN9JISBT.NFTMinter
25 let receiverRecipientCollectionRef: &{NonFungibleToken.Receiver}
26
27 prepare(
28
29 nftMinter: auth(BorrowValue) &Account,
30 receiver: auth(BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue, UnpublishCapability) &Account
31 ) {
32
33
34 let collectionData = KARATDN9JISBT.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData?
35 ?? panic("ViewResolver does not resolve NFTCollectionData view")
36
37 // enable account collection
38 if receiver.storage.borrow<&KARATDN9JISBT.Collection>(from: collectionData.storagePath) == nil {
39 // Create a new empty collection
40 let collection <- KARATDN9JISBT.createEmptyCollection(nftType: Type<@KARATDN9JISBT.NFT>())
41
42 // save it to the account
43 receiver.storage.save(<-collection, to: collectionData.storagePath)
44
45 // create a public capability for the collection
46 receiver.capabilities.unpublish(collectionData.publicPath)
47 let collectionCap = receiver.capabilities.storage.issue<&KARATDN9JISBT.Collection>(collectionData.storagePath)
48 receiver.capabilities.publish(collectionCap, at: collectionData.publicPath)
49 }
50
51 // Borrow the recipient's public NFT collection reference
52 self.receiverRecipientCollectionRef = getAccount(receiver.address).capabilities.borrow<&{NonFungibleToken.Receiver}>(collectionData.publicPath)
53 ?? panic("Could not get receiver reference to the receiver's NFT Collection")
54
55 // borrow a reference to the NFTMinter resource in storage
56 self.nftMinter = nftMinter.storage.borrow<&KARATDN9JISBT.NFTMinter>(from: KARATDN9JISBT.AdminStoragePath)
57 ?? panic("Account does not store an object at the specified path")
58 }
59
60 execute {
61
62 if typeID != "" {
63 let metadata=KARATDN9JISBT.Metadata(name: name, artist: artist, artistAddress: artistAddress, description: description, type: typeID, serialId: 1, royalty: royalty)
64 // Mint the NFT and deposit it to the recipient's collection
65 self.nftMinter.mintNFT(recipient: self.receiverRecipientCollectionRef, metadata: metadata)
66 }
67 }
68}