Skip to content

feat: add suggestion to unsupported cheatcodes #8209

@Wodann

Description

@Wodann

Currently, unsupported cheatcodes report that they are explicitly unsupported in EDR+Hardhat, compared to Foundry.

In addition to this, it would be useful to allow per-cheatcode suggestions when we explicitly provide an alternative.

E.g. for:

    #[cheatcode(group = Utilities, status = Unsupported)]
    function eip712HashType(string calldata bindingsPath, string calldata typeName) external pure returns (bytes32 typeHash);

we could suggest:

Providing a path to a bindings file is not supported. Please use the eip712HashType(string calldata typeNameOrDefinition) cheatcode instead.

and even provide a link to Hardhat documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions