Skip to content

Coverage library: replace memory-safe-assembly special comment with block annotation #1383

Description

@anaPerezGhiglia

The Solidity compiler emits a deprecation warning about memory-safe-assembly Natspec when coverage.sol is part of the compilation input.

Warning: Natspec memory-safe-assembly special comment for inline assembly is deprecated and scheduled for removal. Use the memory-safe block annotation instead.
  --> __hardhat_coverage_library_a3e9cfe2-41b4-4a1f-ad9e-ac62dd82979e.sol:11:5:
   |
11 |     assembly {
   |     ^ (Relevant source part starts here and spans across multiple lines).

Even though the snippet still mentions __hardhat_coverage_library (the old HH-hosted library), this also happens for the EDR-hosted library file. Filing the issue in EDR since, after #1363, EDR is responsible for the library file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions