renamed mint param

This commit is contained in:
miguelToscano 2022-10-12 20:50:52 -03:00
parent 388e31c81c
commit 9d40d9d807
6 changed files with 9 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{ {
"_format": "hh-sol-dbg-1", "_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/deacee61599c1f085ffc184389eb5257.json" "buildInfo": "../../build-info/c8114b4655c4b5a873d5988a1e627215.json"
} }

File diff suppressed because one or more lines are too long

View File

@ -2,8 +2,8 @@
"_format": "hh-sol-cache-2", "_format": "hh-sol-cache-2",
"files": { "files": {
"/Users/migue/Documents/psychedelic/sites_nfts/contracts/SitesNFTs.sol": { "/Users/migue/Documents/psychedelic/sites_nfts/contracts/SitesNFTs.sol": {
"lastModificationDate": 1665603388092, "lastModificationDate": 1665618621409,
"contentHash": "c57c867981733de03ddf2137bf22210d", "contentHash": "4d32f22cb097d8415a33387e88e2e387",
"sourceName": "contracts/SitesNFTs.sol", "sourceName": "contracts/SitesNFTs.sol",
"solcConfig": { "solcConfig": {
"version": "0.8.7", "version": "0.8.7",

View File

@ -26,10 +26,10 @@ contract SitesNFTs is ERC721URIStorage, AccessControl {
} }
// Token uri is the Base64 encoded json metadata // Token uri is the Base64 encoded json metadata
function mint(string memory _tokenURI, address account) public canMint() returns (uint256) { function mint(string memory base64EncodedMetadata, address account) public canMint() returns (uint256) {
uint256 newItemId = _tokenIds.current(); uint256 newItemId = _tokenIds.current();
_safeMint(account, newItemId); _safeMint(account, newItemId);
_setTokenURI(newItemId, _tokenURI); _setTokenURI(newItemId, base64EncodedMetadata);
_tokenIds.increment(); _tokenIds.increment();
return newItemId; return newItemId;