Skip to content

compile error #4

@zivyuan

Description

@zivyuan

I've downloaded the latest version of contract. Error reported when compile:
`

Compiling ./contracts/Date.sol
Compiling ./contracts/Migrations.sol

project:/contracts/Date.sol:40:47: ParserError: Expected '{' but got reserved keyword 'override'
function _baseURI() internal view virtual override returns (string memory) {
^------^

Compilation failed. See above.
Truffle v5.4.24 (core: 5.4.24)
Node v16.13.1
`
how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions