TransactionSEALED
?#▒▪╱▫╲●░◆╱!◇■╱%▓◆@@□◇&▓◇╲▫%!■~○*▪╳!%%▓╳▓◇^▓^!▫╱□■▪▓^●*◇~○╱~○^■^
Transaction ID
Execution Fee
0.00002999 FLOWTransaction Summary
Contract Call
Called NonFungibleToken, Doodles, Wearables +1 more
Script Arguments
Copy:
0baseAddressString
1doodlesIDs[UInt64]
[]
2wearablesIDs[UInt64]
[ "103354093215292", "231996953664602" ]
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}