Skip to content

Commit

Permalink
Small tweak so that the Recipe passes lint and the project deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
franklywatson committed Dec 3, 2024
1 parent fa2953a commit 6702488
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cadence/contracts/Recipe.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ access(all) contract Recipe {
/// Resource fields
access(all) var locked: Bool
access(all) var plays: [UInt32]
access(all) var retired: {UInt32: Bool}
access(all) var numberMintedPerPlay: {UInt32: UInt32}
access(all) let plays: [UInt32]
access(all) let retired: {UInt32: Bool}
access(all) let numberMintedPerPlay: {UInt32: UInt32}
access(all) let setID: UInt32

// Resource initializer
Expand All @@ -35,7 +35,7 @@ access(all) contract Recipe {

access(all) fun addPlay(playID: UInt32) {
pre {
TopShot.playDatas[playID] != nil: "Cannot add the Play to Set: Play doesn't exist."
TopShot.getPlayMetaData(playID: playID) != nil: "Cannot add the Play to Set: Play doesn't exist."
!self.locked: "Cannot add the play to the Set after the set has been locked."
self.numberMintedPerPlay[playID] == nil: "The play has already been added to the set."
}
Expand Down

0 comments on commit 6702488

Please sign in to comment.