TransactionSEALED
○@$░^╱╳■*░□!╲◆▓╲▪$$~╲░░●▫*■^○!?!~▒?&*░╱▒^^▒*╳○&╲■░▒@○@^?!●░▓~░╱□
Transaction ID
Execution Error
Error Code: 1118
error caused by: 1 error occurred:
Raw Error
[Error Code: 1118] error caused by: 1 error occurred: * [Error Code: 1118] payer e5e5103553a1e9ac has insufficient balance to attempt transaction execution (required balance: 0.00100000)
Transaction Summary
Contract CallCalled NonFungibleToken, HWGarageCard
Contracts
Script Arguments
0cardIDs[UInt64]
[ "173805", "173804", "173945", "173810", "173949", "173832", "173764", "173723", "173765", "173904", "173638", "173950", "173903", "173838", "173726", "173722", "173724", "173886", "173944", "173884", "173905", "173902", "173887", "173833", "173885", "173907", "173881", "173883", "173636", "173906", "173767", "173807", "173725", "173763", "173721", "173834", "173808", "173806", "173637", "173642", "173639", "173908", "173641", "173768", "173946", "173882", "173947", "173809", "173836", "173762", "173835", "173948", "173720", "173766", "173837", "173640" ]
1toAddress
Cadence Script
1import NonFungibleToken from 0x1d7e57aa55817448
2import HWGarageCard from 0xd0bcefdf1e67ea85
3
4transaction(cardIDs: [UInt64], to: Address) {
5 prepare(acct: auth(BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue, UnpublishCapability) &Account) {
6 if acct.storage.borrow<&HWGarageCard.Collection>(from: HWGarageCard.CollectionStoragePath) == nil {
7 let cardCollection: @{NonFungibleToken.Collection} <- HWGarageCard.createEmptyCollection(nftType: Type<@HWGarageCard.NFT>())
8 acct.storage.save(<-cardCollection, to: HWGarageCard.CollectionStoragePath)
9 acct.capabilities.unpublish(HWGarageCard.CollectionPublicPath)
10 let cap: Capability<&HWGarageCard.Collection> = acct.capabilities.storage.issue<&HWGarageCard.Collection>(HWGarageCard.CollectionStoragePath)
11 acct.capabilities.publish(cap, at: HWGarageCard.CollectionPublicPath)
12 }
13 let senderRef = acct.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: HWGarageCard.CollectionStoragePath) ?? panic("Could not borrow sender's HW v1 collection as Provider")
14 let receiver = getAccount(to).capabilities.get<&{NonFungibleToken.Receiver}>(HWGarageCard.CollectionPublicPath).borrow() ?? panic("Receiver does not have a HW v1 collection published")
15 for id in cardIDs {
16 let token <- senderRef.withdraw(withdrawID: id) as! @HWGarageCard.NFT
17 receiver.deposit(token: <-token)
18 }
19 }
20 execute {}
21}