Skip to content

Commit

Permalink
added missing script
Browse files Browse the repository at this point in the history
  • Loading branch information
judezhu committed Aug 22, 2024
1 parent 9bac3b9 commit e6e1796
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pds/scripts/packNFT/has_packNFT_collection.cdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import PackNFT from "PackNFT"

/// Check if an account has been set up to hold Pinnacle NFTs.
///
access(all) fun main(address: Address): Bool {
let account = getAccount(address)
return account.capabilities.borrow<
&PackNFT.Collection>(PackNFT.CollectionPublicPath) != nil
}

0 comments on commit e6e1796

Please sign in to comment.