Skip to content

Commit

Permalink
actually use update for contract update
Browse files Browse the repository at this point in the history
  • Loading branch information
loic1 committed Apr 10, 2024
1 parent e8e4a0e commit 0173052
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pds/contracts/PDS.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ access(all) contract PDS{

access(all) fun setDistCap(cap: Capability<&DistributionCreator>) {
pre {
self.cap.borrow() != nil: "Invalid capability"
cap.check(): "Invalid capability"
}
self.cap = cap
}
Expand Down
Loading

0 comments on commit 0173052

Please sign in to comment.