Skip to content

Commit

Permalink
added path
Browse files Browse the repository at this point in the history
  • Loading branch information
judezhu committed Jun 6, 2024
1 parent e072576 commit 7e00bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pds/transactions/pds/settle.cdc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import PDS from "PDS"
import ExampleNFT from "ExampleNFT"

transaction (distId: UInt64, nftIDs: [UInt64]) {
transaction (NFTProviderPath: String, distId: UInt64, nftIDs: [UInt64]) {
prepare(pds: auth(BorrowValue) &Account) {
let cap = pds.storage.borrow<&PDS.DistributionManager>(from: PDS.DistManagerStoragePath)
?? panic("pds does not have Dist manager")
cap.withdraw(
distId: distId,
nftIDs: nftIDs,
escrowCollectionPublic: PublicPath(identifier: "cadenceExampleNFTCollection")!,
escrowCollectionPublic: PublicPath(identifier: NFTProviderPath)!,
)
}
}

0 comments on commit 7e00bb7

Please sign in to comment.