Skip to content

Commit

Permalink
fix cap type as required by new Cadence release
Browse files Browse the repository at this point in the history
  • Loading branch information
loic1 committed Apr 29, 2024
1 parent dca5024 commit 9b546ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pds/contracts/PDS.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ access(all) contract PDS{
access(all) resource SharedCapabilities {
/// Capability to withdraw NFTs from the issuer.
///
access(self) let withdrawCap: Capability<auth(NonFungibleToken.Withdraw, NonFungibleToken.Owner) &{NonFungibleToken.Provider}>
access(self) let withdrawCap: Capability<auth(NonFungibleToken.Withdraw | NonFungibleToken.Owner) &{NonFungibleToken.Provider}>

/// Capability to mint, reveal, and open Pack NFTs.
///
Expand Down Expand Up @@ -155,7 +155,7 @@ access(all) contract PDS{
/// SharedCapabilities resource initializer.
///
view init(
withdrawCap: Capability<auth(NonFungibleToken.Withdraw, NonFungibleToken.Owner) &{NonFungibleToken.Provider}>,
withdrawCap: Capability<auth(NonFungibleToken.Withdraw | NonFungibleToken.Owner) &{NonFungibleToken.Provider}>,
operatorCap: Capability<auth(IPackNFT.Operate) &{IPackNFT.IOperator}>
) {
self.withdrawCap = withdrawCap
Expand Down Expand Up @@ -308,7 +308,7 @@ access(all) contract PDS{
/// Create a SharedCapabilities resource and return it to the caller.
///
access(all) fun createSharedCapabilities(
withdrawCap: Capability<auth(NonFungibleToken.Withdraw, NonFungibleToken.Owner) &{NonFungibleToken.Provider}>,
withdrawCap: Capability<auth(NonFungibleToken.Withdraw | NonFungibleToken.Owner) &{NonFungibleToken.Provider}>,
operatorCap: Capability<auth(IPackNFT.Operate) &{IPackNFT.IOperator}>
): @SharedCapabilities {
return <- create SharedCapabilities(
Expand Down
Loading

0 comments on commit 9b546ef

Please sign in to comment.