Skip to content

Commit

Permalink
The contract's mint entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 10, 2025
1 parent 46a423b commit aed0282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/nft-consolidated/create-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def my_module():

You can customize the contract by using a different base class, using different mixins, or overriding the entrypoints that the base class and mixins provide.
For example, [the pre-deployed contract](https://github.com/trilitech/tutorial-applications/tree/main/nft-consolidated/contract/pre-deployed-fa2-nft.py) overrides the internal function `is_administrator_`.
The `mint` entrypoint uses this function to determine if an account can mint a token.
The contract's `mint` entrypoint uses this function to determine if an account can mint a token.
The overridden version always returns true, so anyone can mint a token:

```smartpy
Expand Down

0 comments on commit aed0282

Please sign in to comment.