Skip to content

"TypeError: Could not instrument" with empty virtual modifier #766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Arvolear opened this issue Oct 24, 2022 · 1 comment
Closed

"TypeError: Could not instrument" with empty virtual modifier #766

Arvolear opened this issue Oct 24, 2022 · 1 comment

Comments

@Arvolear
Copy link

The following code makes the coverage error TypeError: Could not instrument.

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

abstract contract Test {
    modifier onlyOwner() virtual;
}

Tested with 0.8.2 coverage version.

@cgewecke
Copy link
Member

Fixed in v0.8.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants