Skip to content

Commit

Permalink
chore: add comments to contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed May 29, 2024
1 parent c068650 commit 96af45d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/contracts/RunnerFox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ contract RunnerFox is ImmutableERC721 {
)
{}

// Mints the next token
// Allows minter to mint the next token to a specified address
function mintNextToken(address to) external onlyRole(MINTER_ROLE) returns (uint256) {
uint256 tokenId = ++_currentTokenId;
_mintByID(to, tokenId);
return tokenId;
}

// Mints number of tokens specified
// Allows minter to mint number of tokens specified to the address
function mintNextTokenByQuantity(address to, uint256 quantity) external onlyRole(MINTER_ROLE) {
for (uint256 i = 0; i < quantity; i++) {
_mintByID(to, ++_currentTokenId);
Expand Down
4 changes: 2 additions & 2 deletions contracts/contracts/RunnerSkin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ contract RunnerSkin is ImmutableERC721 {
)
{}

// Mints the next token
// Allows minter to mint the next token to a specified address
function mintNextToken(address to) external onlyRole(MINTER_ROLE) returns (uint256) {
uint256 tokenId = ++_currentTokenId;
_mintByID(to, tokenId);
return tokenId;
}

// Mints number of tokens specified
// Allows minter to mint number of tokens specified to the address
function mintNextTokenByQuantity(address to, uint256 quantity) external onlyRole(MINTER_ROLE) {
for (uint256 i = 0; i < quantity; i++) {
_mintByID(to, ++_currentTokenId);
Expand Down

0 comments on commit 96af45d

Please sign in to comment.