Skip to content

Failed to compile contracts written with solidity 0.5.0 #37

@0Alic

Description

@0Alic

I am trying to generate the documentation of my contracts, but the command doxity build in my truffle's project directory fails while compiling my contracts.

Example of contract failing to compile:

pragma solidity ^0.5.0;

/// @title Strategy
/// @notice This contract interface defines the method to compute the final score of a list of data
interface Strategy {

    function compute(uint[] calldata _data) external pure returns(uint);
}

Message got:

SyntaxError: Error parsing *Strategy.sol: Expected "contract", "import", "library", "pragma", "using", comment, end of input, end of line, or whitespace but "i" found. Line: 5, Column: 1

Tools:

Truffle v5.0.2
Solc version used by truffle: 0.5.0

Possible reason

May be doxity using an older and incompatible compiler version of solc and for this reason fails to compile?

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