Hi there! i am currently trying to use the wizard provided to me on OpenZeppelin, I managed to successfully compile the contract. However when I use the mint function. it returns many errors
Below is what iām inputting into
address: 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4
ids: 0
amounts: 1000
data: āā
Is there any examples i can find on how to create this contract or certain guidance,
Many thanks!
Code to reproduce
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract EventToken is ERC1155, Ownable {
constructor() ERC1155("") {}
function setURI(string memory newuri) public onlyOwner {
_setURI(newuri);
}
function mint(address account, uint256 id, uint256 amount, bytes memory data)
public
onlyOwner
{
_mint(account, id, amount, data);
}
function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data)
public
onlyOwner
{
_mintBatch(to, ids, amounts, data);
}
}
Environment
Remix