diff --git a/transactions/admin/admin_unlock.cdc b/transactions/admin/admin_unlock.cdc new file mode 100644 index 00000000..f5256515 --- /dev/null +++ b/transactions/admin/admin_unlock.cdc @@ -0,0 +1,15 @@ +import TopShotLocking from 0xTOPSHOTADDRESS + +transaction(ids: [UInt64]) { + + prepare(acct: auth(Storage) &Account) { + let adminRef = acct.storage.borrow<&TopShotLocking.Admin>(from: /storage/TopShotLockingAdmin) + ?? panic("Could not borrow a reference to the Admin resource") + + for id in ids { + adminRef.unlockByID(id: UInt64(id)) + } + } + +} +