Skip to content

Commit

Permalink
fastbreak(cadence): upgrade
Browse files Browse the repository at this point in the history
* fix code.
  • Loading branch information
chumeston committed Dec 10, 2024
1 parent 51d5109 commit 8cfc2c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/FastBreakV1.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ access(all) contract FastBreakV1: NonFungibleToken {
for flowId in topShots {
let topShotRef = collectionRef.borrowMoment(id: flowId)
if topShotRef == nil {
let hasMarketPlaceV3 = marketV3CollectionRef != nil && marketV3CollectionRef.borrowMoment(id: flowId) != nil
let hasMartketV1 = marketV1CollectionRef != nil && marketV1CollectionRef.borrowMoment(id: flowId)
if !hasMarketPlaceV3 && !hasMartketV1{
panic("does not own")
let hasMarketPlaceV3 = marketV3CollectionRef != nil && marketV3CollectionRef!.borrowMoment(id: flowId) != nil
let hasMarketV1 = marketV1CollectionRef != nil && marketV1CollectionRef!.borrowMoment(id: flowId) != nil
if !hasMarketPlaceV3 && !hasMarketV1{
panic("Top shot not owned in any collection with flowId: ".concat(flowId.toString()))
}
}
}
Expand Down

0 comments on commit 8cfc2c2

Please sign in to comment.