Skip to content

Commit

Permalink
fix tx
Browse files Browse the repository at this point in the history
  • Loading branch information
judezhu committed Aug 29, 2024
1 parent ae4afa8 commit 89727e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transactions/marketV3/create_start_sale.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ transaction(tokenReceiverPath: PublicPath, beneficiaryAccount: Address, cutPerce
let ownerCapability = acct.capabilities.get<&{FungibleToken.Receiver}>(tokenReceiverPath)!
let beneficiaryCapability = getAccount(beneficiaryAccount).capabilities.get<&{FungibleToken.Receiver}>(tokenReceiverPath)!

let ownerCollection = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &TopShot.Collection>(/storage/MomentCollection)
let ownerCollection = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw,NonFungibleToken.Update) &TopShot.Collection>(/storage/MomentCollection)

// get a capability for the v1 collection
var v1SaleCollection: Capability<auth(NonFungibleToken.Withdraw) &Market.SaleCollection>? = nil
var v1SaleCollection: Capability<auth(Market.Create, NonFungibleToken.Withdraw, Market.Update) &Market.SaleCollection>? = nil
if acct.storage.borrow<&Market.SaleCollection>(from: /storage/topshotSaleCollection) != nil {
v1SaleCollection = acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &Market.SaleCollection>(/storage/topshotSaleCollection)
}
Expand Down

0 comments on commit 89727e0

Please sign in to comment.