Skip to content

unable to use non-inlineable library in tests directly #987

@Karrq

Description

@Karrq

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

7f93bae

What version of Foundryup are you on?

No response

What command(s) is the bug in?

forge test

Operating System

macOS (Apple Silicon)

System Specifications

M3 Max, 64GB

Describe the bug

When using a library directly in a test script, execution reverts, and we also get an error that the bytecode at the given address (done thru deletegatecall) is empty.

Here's a repro example:
direct_use.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions