Error i'm getting back when I run truffle compile
ParserError: Expected ';' but got 'contract'
How my contract looks:
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol"
contract SomeContract is ERC721{
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
mapping(string => uint8) hashes;
constructor() public ERC721("SomeContract", "SMC") {}
function awardItem(address recipient, string memory hash, string memory metadata)
public
returns (uint256)
{
require(hashes[hash] != 1);
hashes[hash] = 1;
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_mint(recipient, newItemId);
_setTokenURI(newItemId, metadata);
return newItemId;
}
}
My environment
- Truffle v5.3.1
- solidity 0.6.0
- nodejs V15
- web3 v1.3.5
It must have something to do with the versions of Truffle I am using with Solidity but I tried uninstalling and installing the packages but doesn't seem to work. Any help would be great. Thanks.
;
.