TransactionSEALED
◆▪□▫▪╳◆!▒^■#█╱▪?■○@◆@%▫▓╱□▓&□╳□█◆●^□▪◇◆~▓○^?╲□╳■●@▪#%◇◆█□%@●#□○▒
Transaction ID
Execution Error
Error Code: 1007
error caused by: 1 error occurred:
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 36b33b92367242c4 has sequence number 151, but given 150
Transaction Summary
TransactionScript Arguments
0cardIDs[UInt64]
[ "633053", "613625", "388023", "633027", "613310", "613758", "613500", "388038", "388030", "1125876", "1126632", "388022", "633087", "614158", "613311", "613757", "633057", "632987", "632962", "633009", "613895", "388033", "633054", "388036", "613760", "633024", "388027", "616639", "613624", "633029", "388035", "388045", "616637", "614159", "633006", "632984", "388034", "614155", "633079", "388039", "388050", "613899", "633010", "616636", "388025", "614153", "613897", "633088", "633077", "633012", "632986", "614030", "1125872", "388018", "613622", "388032", "633089", "632983", "388037", "614251", "616641", "633075", "614257", "633073", "614254", "613501", "388051", "1125873", "633052", "613627", "633025", "388047", "613314", "614031", "633090", "633055", "1125874", "613761", "613495", "632960", "613496", "388040", "614034", "632981", "614256", "632957", "613628", "613309", "613756", "388031", "616642", "633028", "633011", "613893", "633093", "614154", "632982", "613313", "388046", "613308" ]
1toAddress
Cadence Script
1import NonFungibleToken from 0x1d7e57aa55817448
2import MetadataViews from 0x1d7e57aa55817448
3import HWGarageCardV2 from 0xd0bcefdf1e67ea85
4import HWGaragePMV2 from 0xd0bcefdf1e67ea85
5
6transaction(cardIDs: [UInt64], to: Address) {
7 prepare(acct: auth(BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue, UnpublishCapability) &Account) {
8 let cardCollectionData: MetadataViews.NFTCollectionData = HWGarageCardV2.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData? ?? panic("ViewResolver does not resolve NFTCollectionData view")
9
10 if acct.storage.borrow<&HWGarageCardV2.Collection>(from: cardCollectionData.storagePath) == nil {
11 let cardCollection: @{NonFungibleToken.Collection} <- HWGarageCardV2.createEmptyCollection(nftType: Type<@HWGarageCardV2.NFT>())
12 acct.storage.save(<-cardCollection, to: cardCollectionData.storagePath)
13 acct.capabilities.unpublish(cardCollectionData.publicPath)
14 let cardCollectionCap: Capability<&HWGarageCardV2.Collection> = acct.capabilities.storage.issue<&HWGarageCardV2.Collection>(cardCollectionData.storagePath)
15 acct.capabilities.publish(cardCollectionCap, at: cardCollectionData.publicPath)
16 }
17
18 let senderRef = acct.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: HWGarageCardV2.CollectionStoragePath) ?? panic("Could not borrow sender's card collection")
19 let receiver = getAccount(to).capabilities.get<&{NonFungibleToken.Receiver}>(HWGarageCardV2.CollectionPublicPath).borrow() ?? panic("Could not borrow receiver's card collection")
20
21 for id in cardIDs {
22 let card <- senderRef.withdraw(withdrawID: id) as! @HWGarageCardV2.NFT
23 HWGarageCardV2.transfer(uuid: card.uuid, id: card.id, packSeriesId: card.packSeriesID, cardEditionId: card.cardEditionID, toAddress: to)
24 receiver.deposit(token: <-card)
25 }
26 }
27 execute {}
28}