diff --git a/pds/scripts/packNFT/has_packNFT_collection.cdc b/pds/scripts/packNFT/has_packNFT_collection.cdc new file mode 100644 index 0000000..0b92df3 --- /dev/null +++ b/pds/scripts/packNFT/has_packNFT_collection.cdc @@ -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 +}