VaultFactoryERC721 ​
Inherits:VaultFactoryCore, VaultFactoryDeployment
Functions ​
mint ​
Mints a new ERC721 token for a specific vault (vaultId_) to a specified user (user_). Only the corresponding vault is authorized to mint a token.
solidity
function mint(uint256 vaultId_, address user_) external returns (uint256 tokenId_);Parameters
| Name | Type | Description |
|---|---|---|
vaultId_ | uint256 | The ID of the vault that's minting the token. |
user_ | address | The address receiving the minted token. |
Returns
| Name | Type | Description |
|---|---|---|
tokenId_ | uint256 | The ID of the newly minted token. |
tokenURI ​
Returns the URI of the specified token ID (id_). In this implementation, an empty string is returned as no specific URI is defined.
solidity
function tokenURI(uint256 id_) public view virtual override returns (string memory);Parameters
| Name | Type | Description |
|---|---|---|
id_ | uint256 | The ID of the token to query. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | string | An empty string since no specific URI is defined in this implementation. |

