Skip to content

Commit

Permalink
Merge branch 'book/objects' of github.com:MystenLabs/move-book into b…
Browse files Browse the repository at this point in the history
…ook/objects
  • Loading branch information
damirka committed Apr 4, 2024
2 parents 79c2373 + c234208 commit 155e5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/storage/storage-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public fun mint_and_transfer(
}
```

The `mint_and_transfer` function is a public function that "could" be called by anyone, but it requires an `AdminCap` object to be passed as the first argument. Without it, the function will not be callable. This is a simple way to restrict access to privileged functions called _[Capability](./../programmability/capability.md)_. Because the `AdminCap` object is _account owned_, only `0xa11ce` will be able to call the `mint_and_transfer` function.
The `mint_and_transfer` function is a public function that "could" be called by anyone, but it requires an `AdminCap` object to be passed as the first argument by reference. Without it, the function will not be callable. This is a simple way to restrict access to privileged functions called _[Capability](./../programmability/capability.md)_. Because the `AdminCap` object is _account owned_, only `0xa11ce` will be able to call the `mint_and_transfer` function.

The `Gift`s sent to recipients will also be _account owned_, each gift being unique and owned exclusively by the recipient.

Expand Down

0 comments on commit 155e5f0

Please sign in to comment.