Skip to content

Instrumenting solidity 0.5.x contracts with calldata keyword. #316

Closed
@Amxx

Description

@Amxx

When running solidity coverage, I am getting an error:

There was a problem instrumenting ./coverageEnv/contracts/XXX.sol: SyntaxError: Expected ")", ",", comment, end of line, or whitespace but "_" found. Line: 50, Column: 20

Line 50 is of XXX.sol is:

49.	function myMethod(
50.		string  calldata _firstArg,
51.		bytes32 _secondArg,

If I remove the calldata keyword my code will not compile using the classical workflow, and I'd like to avoid having a specific version of my code for running solidity-coverage

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