Skip to content

Commit

Permalink
fixed withdraw cap
Browse files Browse the repository at this point in the history
  • Loading branch information
judezhu committed Aug 27, 2024
1 parent c6fc23c commit 81bb88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pds/transactions/pds/create_distribution.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ transaction(nftWithdrawCapPath: StoragePath, title: String, metadata: {String: S

// get withdraw capability from issuer
let withdrawCap = issuer.storage.copy<
Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>>(from: nftWithdrawCapPath)!
Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>>(from: nftWithdrawCapPath)!
assert(withdrawCap.check(), message: "cannot get copy of withdraw capability")

// get operator capability from issuer
Expand Down

0 comments on commit 81bb88e

Please sign in to comment.