Skip to content

bug: invariant test chooses contract senders which are rejected due to EIP-3607 #2963

Closed
@mds1

Description

@mds1

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (56dc746 2022-08-26T00:07:43.474069Z)

What command(s) is the bug in?

forge test

Operating System

No response

Describe the bug

Using the same test contract as #2962, sometimes the sender will be a contract chosen from the dictionary. In that case the call reverts with [FAIL. Reason: EvmError: RejectCallerWithCode] due to EIP-3607, similar to #2090

IMO the ideal solution here is to bypass 3607 since the msg.sender can have code, and this is referring to the fact that tx.origin cannot have code which isn't too relevant for invariant tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions