From 96af45dfae0822b588f6970886b6a0db23f961bf Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Fri, 8 Mar 2024 19:52:00 +1300 Subject: [PATCH] chore: add comments to contracts --- contracts/contracts/RunnerFox.sol | 4 ++-- contracts/contracts/RunnerSkin.sol | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/contracts/RunnerFox.sol b/contracts/contracts/RunnerFox.sol index 9c372608a..bba8dc310 100644 --- a/contracts/contracts/RunnerFox.sol +++ b/contracts/contracts/RunnerFox.sol @@ -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); diff --git a/contracts/contracts/RunnerSkin.sol b/contracts/contracts/RunnerSkin.sol index a21ea067e..90a938889 100644 --- a/contracts/contracts/RunnerSkin.sol +++ b/contracts/contracts/RunnerSkin.sol @@ -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);