Skip to content

Commit

Permalink
correct entitlement issue on drop phases
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkline committed Aug 18, 2024
1 parent ef936a7 commit 02630f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/FlowtyDrops.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ access(all) contract FlowtyDrops {
return arr
}

access(all) fun addPhase(_ phase: @Phase) {
access(Owner) fun addPhase(_ phase: @Phase) {
emit PhaseAdded(
dropID: self.uuid,
dropAddress: self.owner!.address,
Expand All @@ -159,7 +159,7 @@ access(all) contract FlowtyDrops {
self.phases.append(<-phase)
}

access(all) fun removePhase(index: Int): @Phase {
access(Owner) fun removePhase(index: Int): @Phase {
pre {
self.phases.length > index: "index is greater than length of phases"
}
Expand Down

0 comments on commit 02630f2

Please sign in to comment.