Skip to content

Commit

Permalink
Debug tx error
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Dec 8, 2024
1 parent 59ea45a commit 5bed50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cadence/transactions/create_play.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import "TopShot"
transaction {
let admin: &TopShot.Admin

prepare(acct: AuthAccount) {
prepare(signer: auth(Storage) &Account) {
// Borrow the Admin resource from the specified storage path
self.admin = acct.borrow<&TopShot.Admin>(from: /storage/TopShotAdmin)
self.admin = signer.storage.borrow<&TopShot.Admin>(from: /storage/TopShotAdmin)
?? panic("Cannot borrow admin resource")
}

Expand Down

0 comments on commit 5bed50a

Please sign in to comment.