Skip to content

Commit

Permalink
Debugging contract linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Dec 8, 2024
1 parent b9e8ba1 commit 59ea45a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cadence/transactions/create_play.cdc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import "TopShot"

transaction {
let admin: auth(Admin) &TopShot.Admin
let admin: &TopShot.Admin

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

Expand Down
3 changes: 1 addition & 2 deletions flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@
"emulator": {
"emulator-account": [
"Recipe",
"TopShot",
"TopShotLocking"
"TopShot"
]
}
}
Expand Down

0 comments on commit 59ea45a

Please sign in to comment.