Skip to content

feat: getCode for linked contracts #1161

@jparklev

Description

@jparklev

Component

Forge

Describe the feature you would like

This is quite a niche feature request, I think. But currently it's not possible to use the getCode cheatcode with contracts that have linked libraries, so you can't import a local contract using a different solidity version in your tests if it's using one.

Additional context

The specific use case I ran into was importing a Balancer pool (0.7.6) that implemented an oracle using Balancer's query processor library into a testing suite of a newer project (0.8.11).

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions