renamed mint param
This commit is contained in:
parent
388e31c81c
commit
9d40d9d807
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"_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
|
|
@ -2,8 +2,8 @@
|
|||
"_format": "hh-sol-cache-2",
|
||||
"files": {
|
||||
"/Users/migue/Documents/psychedelic/sites_nfts/contracts/SitesNFTs.sol": {
|
||||
"lastModificationDate": 1665603388092,
|
||||
"contentHash": "c57c867981733de03ddf2137bf22210d",
|
||||
"lastModificationDate": 1665618621409,
|
||||
"contentHash": "4d32f22cb097d8415a33387e88e2e387",
|
||||
"sourceName": "contracts/SitesNFTs.sol",
|
||||
"solcConfig": {
|
||||
"version": "0.8.7",
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ contract SitesNFTs is ERC721URIStorage, AccessControl {
|
|||
}
|
||||
|
||||
// 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();
|
||||
_safeMint(account, newItemId);
|
||||
_setTokenURI(newItemId, _tokenURI);
|
||||
_setTokenURI(newItemId, base64EncodedMetadata);
|
||||
|
||||
_tokenIds.increment();
|
||||
return newItemId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue