TransactionSEALED
╲%*○○*●●$╱%@?○▪╲╲?●%#@■#○□╲╱░░?^╱$~#?◆#@*◆%#^@╳@■○&░╳%●~^╳◇○▪□╳╱
Transaction ID
Execution Fee
0.00014245 FLOWTransaction Summary
Contract Call
Called NonFungibleToken, Doodles, Wearables +1 more
Script Arguments
Copy:
0baseAddressString
1doodlesIDs[UInt64]
[ "998505953" ]
2wearablesIDs[UInt64]
[ "48378512025668", "878574495", "878574493", "48378512025667", "878574484", "878574494", "878574485", "878574486", "998508088", "878574490", "48378512025669" ]
Cadence Script
1import NonFungibleToken from 0x1d7e57aa55817448
2import Doodles from 0xe81193c424cfd3fb
3import Wearables from 0xe81193c424cfd3fb
4import DoodlesWearablesProxy from 0xe81193c424cfd3fb
5
6transaction(baseAddress: String, doodlesIDs: [UInt64], wearablesIDs: [UInt64]) {
7 prepare(signer: auth(BorrowValue) &Account) {
8 if doodlesIDs.length > 0 {
9 let doodlesProvider = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Doodles.Collection>(from: Doodles.CollectionStoragePath)!
10 for doodleID in doodlesIDs {
11 let doodle <- doodlesProvider.withdraw(withdrawID: doodleID) as! @Doodles.NFT
12 DoodlesWearablesProxy.depositDoodle(
13 doodle: <- doodle,
14 baseAddress: baseAddress,
15 flowAddress: signer.address
16 )
17 }
18 }
19
20 if wearablesIDs.length > 0 {
21 let wearablesProvider = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Wearables.Collection>(from: Wearables.CollectionStoragePath)!
22 for wearableID in wearablesIDs {
23 let wearable <- wearablesProvider.withdraw(withdrawID: wearableID) as! @Wearables.NFT
24 DoodlesWearablesProxy.depositWearable(
25 wearable: <- wearable,
26 baseAddress: baseAddress,
27 flowAddress: signer.address
28 )
29 }
30 }
31 }
32}