From 8cfc2c285ff5804de0b629cd22a4e523f871ce24 Mon Sep 17 00:00:00 2001 From: chumeston Date: Mon, 9 Dec 2024 18:08:26 -0600 Subject: [PATCH] fastbreak(cadence): upgrade * fix code. --- contracts/FastBreakV1.cdc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/FastBreakV1.cdc b/contracts/FastBreakV1.cdc index 5bd6483..6fe2f93 100644 --- a/contracts/FastBreakV1.cdc +++ b/contracts/FastBreakV1.cdc @@ -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())) } } }