Skip to content

[PARTIALLY FIXED] Pocgen sometimes doesn't understand the forge-std API #409

@IliaMManolov

Description

@IliaMManolov

Example:

Error (6160): Wrong argument count for function call: 1 arguments given but expected 0.
   --> contracts/test/Insufficient_validation_on_user_inputs_test.t.sol:101:13:
    |
101 |             fail("Loan creation with excessive duration did not revert as expected. Input validation insufficient.");

Another example:

vm.expectRevert(stdError.arithmeticError); // Expect arithmetic underflow error (panic 0x11)

We should probably give it examples of how to use common forge testing functionality.

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