Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions transactions/admin/admin_unlock.cdc
Original file line number Diff line number Diff line change
@@ -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))
}
}

}

Loading