Skip to content

bug: Delay in anvil_setCode causing contract call failures #13312

@0xrusowsky

Description

@0xrusowsky

source: telegram
channel: Foundry Support
reported: @mathijs_v

Component

Anvil

Version

Not provided

Operating System

Not provided

Command

anvil_setCode

Description

I'm struggling a bit with anvil_setCode. It seems to work but there's somehow a delay, so my script contract fails with call to non-contract address. When I then run the same script again it usually goes through. Does anyone know how to make this more reliable?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions